-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from maykinmedia/feature/remove-v1
remove v1
- Loading branch information
Showing
23 changed files
with
20 additions
and
1,450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
#!/bin/bash | ||
# | ||
# Dump the current OAS into YAML file src/objecttypes/api/<version>/openapi.yaml | ||
# Dump the current OAS into YAML file src/objecttypes/api/v2/openapi.yaml | ||
# | ||
# Run this script from the root of the repository | ||
|
||
if [ "$1" = "" ]; then | ||
echo "You need to pass a version in the first argument" | ||
exit 1 | ||
fi | ||
export SCHEMA_PATH=src/objecttypes/api/v2/openapi.yaml | ||
|
||
if [ "$1" != "v1" ] && [ "$1" != "v2" ]; then | ||
echo "You need to pass a correct version in the first argument. Available values: v1, v2" | ||
exit 1 | ||
fi | ||
OUTPUT_FILE=$1 | ||
|
||
export SCHEMA_PATH=src/objecttypes/api/$1/openapi.yaml | ||
|
||
OUTPUT_FILE=$2 | ||
|
||
src/manage.py spectacular --file ${OUTPUT_FILE:-$SCHEMA_PATH} --validate --api-version $1 | ||
src/manage.py spectacular --file ${OUTPUT_FILE:-$SCHEMA_PATH} --validate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
from django.urls import include, path | ||
|
||
urlpatterns = [ | ||
path("v1", include("objecttypes.api.v1.urls", namespace="v1")), | ||
path("v2", include("objecttypes.api.v2.urls", namespace="v2")), | ||
] |
Empty file.
Oops, something went wrong.