This commit is contained in:
parent
0cdbc3e4a2
commit
b940f1f0ca
4 changed files with 33 additions and 6 deletions
|
|
@ -63,6 +63,7 @@ SWAGGER_SETTINGS = {
|
|||
},
|
||||
'USE_SESSION_AUTH': False,
|
||||
'JSON_EDITOR': True,
|
||||
'DEFAULT_INFO': 'backend.urls.openapi_info',
|
||||
}
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
|
|
|||
|
|
@ -18,14 +18,16 @@ from django.urls import path, include
|
|||
from drf_yasg import openapi
|
||||
from drf_yasg.views import get_schema_view
|
||||
|
||||
openapi_info = openapi.Info(
|
||||
title="Toolshed API",
|
||||
default_version='v1',
|
||||
description="API for all things …",
|
||||
)
|
||||
|
||||
schema_view = get_schema_view(
|
||||
openapi.Info(
|
||||
title="Toolshed API",
|
||||
default_version='v1',
|
||||
description="API for all things …",
|
||||
),
|
||||
openapi_info,
|
||||
public=True,
|
||||
permission_classes=[]
|
||||
permission_classes=[],
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue