feat(api): полное API для всех парсеров с документацией

This commit is contained in:
2026-02-01 15:19:21 +01:00
parent eacb1527c4
commit efa5c3ae34
8 changed files with 840 additions and 141 deletions

View File

@@ -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,