We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 662f29d commit 332af9fCopy full SHA for 332af9f
2 files changed
server/balancer_backend/settings.py
@@ -51,6 +51,7 @@
51
"corsheaders",
52
"rest_framework",
53
"djoser",
54
+ 'drf_spectacular',
55
]
56
57
MIDDLEWARE = [
@@ -195,8 +196,15 @@
195
196
"DEFAULT_AUTHENTICATION_CLASSES": (
197
"rest_framework_simplejwt.authentication.JWTAuthentication",
198
),
199
+ 'DEFAULT_SCHEMA_CLASS': 'drf_spectacular.openapi.AutoSchema',
200
}
201
202
+SPECTACULAR_SETTINGS = {
203
+ 'TITLE': 'Balancer API',
204
+ 'DESCRIPTION': 'API for the Balancer medication decision support tool',
205
+ 'VERSION': '1.0.0',
206
+ 'SERVE_INCLUDE_SCHEMA': False,
207
+}
208
209
SIMPLE_JWT = {
210
"AUTH_HEADER_TYPES": ("JWT",),
server/requirements.txt
@@ -18,4 +18,5 @@ sentence_transformers
18
PyMuPDF==1.24.0
19
Pillow
20
pytesseract
21
-anthropic
+anthropic
22
+drf-spectacular
0 commit comments