diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 037e3a754d3..2745a22b87c 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -581,14 +581,15 @@ def _setting(name, default=None): # SPECTACULAR_SETTINGS = { - "TITLE": "NetBox API", - "DESCRIPTION": "API to access NetBox", - "LICENSE": {"name": "Apache v2 License"}, - "VERSION": VERSION, + 'TITLE': 'NetBox API', + 'DESCRIPTION': 'API to access NetBox', + 'LICENSE': {'name': 'Apache v2 License'}, + 'VERSION': VERSION, 'COMPONENT_SPLIT_REQUEST': True, + 'REDOC_DIST': 'SIDECAR', + 'SERVERS': [{'url': f'/{BASE_PATH}api'}], 'SWAGGER_UI_DIST': 'SIDECAR', 'SWAGGER_UI_FAVICON_HREF': 'SIDECAR', - 'REDOC_DIST': 'SIDECAR', 'POSTPROCESSING_HOOKS': [], }