-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/docker-dev
- Loading branch information
Showing
6 changed files
with
306 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,3 +160,6 @@ cython_debug/ | |
.idea/ | ||
media/ | ||
.DS_Store | ||
|
||
# Vscode project settings | ||
.vscode |
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,6 +1,37 @@ | ||
from django.contrib import admin | ||
from django.urls import path | ||
from django.urls import include, path | ||
from drf_spectacular.views import ( | ||
SpectacularAPIView, | ||
SpectacularRedocView, | ||
SpectacularSwaggerView, | ||
) | ||
|
||
from config.settings import DEBUG | ||
|
||
api_schema_url_patterns = [ | ||
path( | ||
route="", | ||
view=SpectacularAPIView.as_view(), | ||
name="schema", | ||
), | ||
path( | ||
route="redoc/", | ||
view=SpectacularRedocView.as_view(url_name="schema"), | ||
name="redoc", | ||
), | ||
path( | ||
route="swagger-ui/", | ||
view=SpectacularSwaggerView.as_view(url_name="schema"), | ||
name="swagger-ui", | ||
), | ||
] | ||
|
||
urlpatterns = [ | ||
path(route="api/v1/schema/", view=include(api_schema_url_patterns)), | ||
path("admin/", admin.site.urls), | ||
] | ||
|
||
if DEBUG: | ||
import debug_toolbar | ||
|
||
urlpatterns += [path("__debug__/", include(debug_toolbar.urls))] |
Oops, something went wrong.