2023-09-26 20:00:26 +00:00
|
|
|
# pylint: disable=too-few-public-methods
|
2023-10-02 13:55:13 +00:00
|
|
|
from pathlib import Path
|
2023-10-02 10:48:42 +00:00
|
|
|
import __main__
|
|
|
|
|
2023-09-26 20:00:26 +00:00
|
|
|
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'
|
|
|
|
}
|
|
|
|
}
|
2023-10-02 13:55:13 +00:00
|
|
|
FILE_SAVE_DIRECTORY = Path(__main__.__file__).parent / "temp"
|