Fix: api shema app
This commit is contained in:
parent
c641e10229
commit
cb5ec0fcbe
1 changed files with 15 additions and 0 deletions
|
@ -42,11 +42,14 @@ INSTALLED_APPS = [
|
||||||
# Library apps
|
# Library apps
|
||||||
"rest_framework",
|
"rest_framework",
|
||||||
"rest_framework_simplejwt",
|
"rest_framework_simplejwt",
|
||||||
|
"drf_spectacular",
|
||||||
|
"drf_spectacular_sidecar",
|
||||||
"corsheaders",
|
"corsheaders",
|
||||||
"django_celery_results",
|
"django_celery_results",
|
||||||
"django_celery_beat",
|
"django_celery_beat",
|
||||||
# API apps
|
# API apps
|
||||||
"api",
|
"api",
|
||||||
|
"api.schema",
|
||||||
"api.authentication",
|
"api.authentication",
|
||||||
"api.user",
|
"api.user",
|
||||||
"images",
|
"images",
|
||||||
|
@ -133,6 +136,18 @@ REST_FRAMEWORK = {
|
||||||
"rest_framework.authentication.SessionAuthentication",
|
"rest_framework.authentication.SessionAuthentication",
|
||||||
"rest_framework_simplejwt.authentication.JWTAuthentication",
|
"rest_framework_simplejwt.authentication.JWTAuthentication",
|
||||||
),
|
),
|
||||||
|
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SPECTACULAR_SETTINGS = {
|
||||||
|
"TITLE": "Gallery-Archivist API",
|
||||||
|
"DESCRIPTION": "A tool for archiving online galleries",
|
||||||
|
"VERSION": "1.0.0",
|
||||||
|
"SERVE_INCLUDE_SCHEMA": False,
|
||||||
|
"SWAGGER_UI_DIST": "SIDECAR", # shorthand to use the sidecar instead
|
||||||
|
"SWAGGER_UI_FAVICON_HREF": "SIDECAR",
|
||||||
|
"REDOC_DIST": "SIDECAR",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue