29 lines
773 B
Python
29 lines
773 B
Python
|
# pylint: disable=too-few-public-methods
|
||
|
import os
|
||
|
class DefaultSettings:
|
||
|
API_TITLE = "Support Organizer"
|
||
|
API_VERSION = 0.1
|
||
|
OPENAPI_VERSION = "3.1.0"
|
||
|
|
||
|
# openapi.json settings
|
||
|
OPENAPI_URL_PREFIX = "/"
|
||
|
OPENAPI_JSON_PATH = "openapi.json"
|
||
|
|
||
|
# swagger settings
|
||
|
OPENAPI_SWAGGER_UI_PATH = "/swagger"
|
||
|
OPENAPI_SWAGGER_UI_URL = "https://cdn.jsdelivr.net/npm/swagger-ui-dist/"
|
||
|
SWAGGER_UI_DOC_EXPANSION = "list"
|
||
|
|
||
|
# redoc settings
|
||
|
OPENAPI_REDOC_PATH = "/redoc"
|
||
|
OPENAPI_REDOC_URL = "https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"
|
||
|
|
||
|
# Info settings
|
||
|
API_SPEC_OPTIONS = {
|
||
|
'info': {
|
||
|
'description': 'Support Organizer for FGO'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
FILE_SAVE_DIRECTORY = f"{os.getcwd()}/temp"
|