fix openapi issues
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
j3d1 2023-10-25 00:18:14 +02:00
parent 0cdbc3e4a2
commit b940f1f0ca
4 changed files with 33 additions and 6 deletions

View file

@ -63,6 +63,7 @@ SWAGGER_SETTINGS = {
},
'USE_SESSION_AUTH': False,
'JSON_EDITOR': True,
'DEFAULT_INFO': 'backend.urls.openapi_info',
}
MIDDLEWARE = [

View file

@ -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 = [