mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Disable authentication to access swagger UI
This commit is contained in:
@@ -245,7 +245,7 @@ SPECTACULAR_SETTINGS = {
|
||||
'SCHEMA_PATH_PREFIX': r'/api/v[0-9]',
|
||||
'TITLE': 'Modoboa API',
|
||||
'VERSION': None,
|
||||
'SERVE_PERMISSIONS': ['rest_framework.permissions.IsAuthenticated'],
|
||||
'SERVE_AUTHENTICATION': [],
|
||||
}
|
||||
|
||||
# Modoboa settings
|
||||
|
||||
@@ -52,11 +52,6 @@ urlpatterns += exts_pool.get_urls()
|
||||
# API urls
|
||||
urlpatterns += [
|
||||
# FIXME: legacy, to remove ASAP
|
||||
path(
|
||||
"docs/openapi.json",
|
||||
SpectacularJSONAPIView.as_view(api_version="v1"),
|
||||
name="schema-v1-legacy",
|
||||
),
|
||||
path(
|
||||
"api/schema-v1/",
|
||||
SpectacularJSONAPIView.as_view(api_version="v1"),
|
||||
|
||||
@@ -261,7 +261,7 @@ SPECTACULAR_SETTINGS = {
|
||||
"SCHEMA_PATH_PREFIX": r"/api/v[0-9]",
|
||||
"TITLE": "Modoboa API",
|
||||
"VERSION": None,
|
||||
"SERVE_PERMISSIONS": ["rest_framework.permissions.IsAuthenticated"],
|
||||
"SERVE_AUTHENTICATION": [],
|
||||
}
|
||||
|
||||
# Modoboa settings
|
||||
|
||||
Reference in New Issue
Block a user