Cat Feeder  1.0.0
The Cat feeder project
Loading...
Searching...
No Matches
editor_constants.py
Go to the documentation of this file.
1r"""
2# +==== BEGIN CatFeeder =================+
3# LOGO:
4# ..............(..../\
5# ...............)..(.')
6# ..............(../..)
7# ...............\‍(__)|
8# Inspired by Joan Stark
9# source https://www.asciiart.eu/
10# animals/cats
11# /STOP
12# PROJECT: CatFeeder
13# FILE: editor_constants.py
14# CREATION DATE: 26-11-2025
15# LAST Modified: 14:44:4 19-12-2025
16# DESCRIPTION:
17# This is the backend server in charge of making the actual website work.
18# /STOP
19# COPYRIGHT: (c) Cat Feeder
20# PURPOSE: Constants for Swagger Editor documentation provider.
21# // AR
22# +==== END CatFeeder =================+
23"""
24
25# API Editor configuration
26EDITOR_URL: str = "/editor"
27EDITOR_CDN_VERSION: str = "5.10.5" # Using Swagger UI for reliability
28EDITOR_CDN_BASE: str = f"https://cdn.jsdelivr.net/npm/swagger-ui-dist@{EDITOR_CDN_VERSION}"
29EDITOR_CDN_CSS: str = f"{EDITOR_CDN_BASE}/swagger-ui.css"
30EDITOR_CDN_JS: str = f"{EDITOR_CDN_BASE}/swagger-ui-bundle.js"
31EDITOR_CDN_PRESET: str = f"{EDITOR_CDN_BASE}/swagger-ui-standalone-preset.js"
32
33# Editor configuration options
34EDITOR_OPTIONS: dict = {
35 "deepLinking": True,
36 "displayOperationId": True,
37 "displayRequestDuration": True,
38 "filter": True,
39 "showExtensions": True,
40 "showCommonExtensions": True,
41 "tryItOutEnabled": True,
42 "layout": "BaseLayout",
43}