Remove drf-yasg
This commit is contained in:
parent
cc8aafa310
commit
70a0d5a96d
4 changed files with 0 additions and 91 deletions
|
|
@ -37,7 +37,6 @@ INSTALLED_APPS = [
|
|||
"django.forms",
|
||||
# third party apps
|
||||
"rest_framework",
|
||||
"drf_yasg",
|
||||
"celery",
|
||||
"django_celery_beat",
|
||||
"registration",
|
||||
|
|
|
|||
|
|
@ -3,9 +3,6 @@ from django.contrib import admin
|
|||
from django.contrib.auth.decorators import login_required
|
||||
from django.urls import include, path
|
||||
|
||||
from drf_yasg import openapi
|
||||
from drf_yasg.views import get_schema_view
|
||||
|
||||
from newsreader.accounts.urls import urlpatterns as login_urls
|
||||
from newsreader.news.core.views import NewsView
|
||||
from newsreader.news.urls import endpoints as news_endpoints
|
||||
|
|
@ -14,16 +11,12 @@ from newsreader.news.urls import urlpatterns as news_patterns
|
|||
|
||||
api_patterns = [path("api/", include((news_endpoints, "news")))]
|
||||
|
||||
schema_info = openapi.Info(title="Newsreader API", default_version="v1")
|
||||
schema_view = get_schema_view(schema_info, patterns=api_patterns)
|
||||
|
||||
urlpatterns = [
|
||||
path("", login_required(NewsView.as_view()), name="index"),
|
||||
path("", include((news_patterns, "news"))),
|
||||
path("", include((api_patterns, "api"))),
|
||||
path("accounts/", include((login_urls, "accounts")), name="accounts"),
|
||||
path("admin/", admin.site.urls, name="admin"),
|
||||
path("api/", schema_view.with_ui("swagger"), name="api"),
|
||||
path("api/auth/", include("rest_framework.urls"), name="rest_framework"),
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue