Fix: api shema app

This commit is contained in:
Aroy-Art 2025-02-09 16:03:52 +01:00
parent c641e10229
commit cb5ec0fcbe
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -42,11 +42,14 @@ INSTALLED_APPS = [
# Library apps
"rest_framework",
"rest_framework_simplejwt",
"drf_spectacular",
"drf_spectacular_sidecar",
"corsheaders",
"django_celery_results",
"django_celery_beat",
# API apps
"api",
"api.schema",
"api.authentication",
"api.user",
"images",
@ -133,6 +136,18 @@ REST_FRAMEWORK = {
"rest_framework.authentication.SessionAuthentication",
"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",
}