-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove drf-yasg as I like drf_spectacular better
- Loading branch information
Showing
5 changed files
with
9 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,35 +23,12 @@ | |
from drf_spectacular.views import SpectacularAPIView | ||
from drf_spectacular.views import SpectacularRedocView | ||
from drf_spectacular.views import SpectacularSwaggerView | ||
from drf_yasg import openapi | ||
from drf_yasg.views import get_schema_view | ||
from rest_framework import permissions | ||
|
||
|
||
schema_view = get_schema_view( | ||
openapi.Info( | ||
title="Hangul Typing Tutor API", | ||
default_version="v1", | ||
description="API for Hangul Typing Tutor", | ||
terms_of_service="", | ||
contact=openapi.Contact(email="[email protected]"), | ||
license=openapi.License(name="MIT License"), | ||
), | ||
public=True, | ||
permission_classes=(permissions.AllowAny,), | ||
) | ||
|
||
|
||
urlpatterns = [ | ||
path("admin/", admin.site.urls), | ||
path("", include("challenges.urls")), | ||
path("", include("marketing.urls")), | ||
# drf-yasg views | ||
path( | ||
"swagger/", | ||
schema_view.with_ui("swagger", cache_timeout=0), | ||
name="schema-swagger-ui", | ||
), | ||
# drf-spectacular views | ||
path( | ||
"schema/", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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