mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 17:26:10 -06:00
12148 add swagger-sidecar for self-hosted swagger docs
This commit is contained in:
parent
872b70c2b5
commit
7bebfd8565
@ -345,6 +345,7 @@ INSTALLED_APPS = [
|
||||
'wireless',
|
||||
'django_rq', # Must come after extras to allow overriding management commands
|
||||
'drf_spectacular',
|
||||
'drf_spectacular_sidecar',
|
||||
]
|
||||
|
||||
# Middleware
|
||||
@ -584,6 +585,9 @@ SPECTACULAR_SETTINGS = {
|
||||
"LICENSE": {"name": "Apache v2 License"},
|
||||
"VERSION": VERSION,
|
||||
'COMPONENT_SPLIT_REQUEST': True,
|
||||
'SWAGGER_UI_DIST': 'SIDECAR',
|
||||
'SWAGGER_UI_FAVICON_HREF': 'SIDECAR',
|
||||
'REDOC_DIST': 'SIDECAR',
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -15,7 +15,8 @@ django-tables2==2.5.3
|
||||
django-taggit==3.1.0
|
||||
django-timezone-field==5.0
|
||||
djangorestframework==3.14.0
|
||||
drf-spectacular==0.25.1
|
||||
drf-spectacular==0.26.1
|
||||
drf-spectacular-sidecar==2023.4.1
|
||||
feedparser==6.0.10
|
||||
graphene-django==3.0.0
|
||||
gunicorn==20.1.0
|
||||
|
Loading…
Reference in New Issue
Block a user