From e4f5a25e64da86239bb083b1588f235f3a9f3d23 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Mon, 9 Nov 2020 21:56:48 +0100 Subject: [PATCH] Added missing test config. --- test_project/test_project/settings.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test_project/test_project/settings.py b/test_project/test_project/settings.py index bd94c34a7..29f83a8ff 100644 --- a/test_project/test_project/settings.py +++ b/test_project/test_project/settings.py @@ -63,6 +63,7 @@ INSTALLED_APPS = ( 'ckeditor_uploader', 'rest_framework', 'rest_framework.authtoken', + 'drf_spectacular', 'django_otp', 'django_otp.plugins.otp_totp', 'django_otp.plugins.otp_static', @@ -184,6 +185,13 @@ REST_FRAMEWORK = { 'rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.SessionAuthentication', ), + 'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema', +} + +SPECTACULAR_SETTINGS = { + 'SCHEMA_PATH_PREFIX': r'/api/v1', + 'TITLE': 'Modoboa API', + 'VERSION': '1.0.0' } # Modoboa settings