diff --git a/app/app/settings.py b/app/app/settings.py index d36e749..2523059 100644 --- a/app/app/settings.py +++ b/app/app/settings.py @@ -39,6 +39,8 @@ 'django.contrib.messages', 'django.contrib.staticfiles', 'core', + 'rest_framework', + 'drf_spectacular', ] MIDDLEWARE = [ @@ -130,3 +132,7 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' AUTH_USER_MODEL = 'core.User' + +REST_FRAMEWORK = { + 'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema', +} diff --git a/requirements.txt b/requirements.txt index 8138010..976a20c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ Django>=3.2.4,<3.3 djangorestframework>=3.12.4,<3.13 psycopg2>=2.8.6,<2.9 +drf-spectacular>=0.15.1,<0.16