feat(api): полное API для всех парсеров с документацией
This commit is contained in:
@@ -344,6 +344,24 @@ if isinstance(CORS_ALLOWED_ORIGINS, str):
|
||||
CORS_ALLOWED_ORIGINS = CORS_ALLOWED_ORIGINS.split(",")
|
||||
CORS_ALLOW_CREDENTIALS = True
|
||||
|
||||
# =============================================================================
|
||||
# SWAGGER SETTINGS (drf-yasg)
|
||||
# =============================================================================
|
||||
SWAGGER_SETTINGS = {
|
||||
"SECURITY_DEFINITIONS": {
|
||||
"Bearer": {
|
||||
"type": "apiKey",
|
||||
"name": "Authorization",
|
||||
"in": "header",
|
||||
"description": "JWT авторизация. Формат: Bearer <access_token>",
|
||||
}
|
||||
},
|
||||
"USE_SESSION_AUTH": True,
|
||||
"PERSIST_AUTH": True,
|
||||
"REFETCH_SCHEMA_WITH_AUTH": True,
|
||||
"REFETCH_SCHEMA_ON_LOGOUT": True,
|
||||
}
|
||||
|
||||
# Logging configuration
|
||||
LOGGING = {
|
||||
"version": 1,
|
||||
|
||||
Reference in New Issue
Block a user