gealogiuya
This commit is contained in:
20
core/config/rest_framework.py
Normal file
20
core/config/rest_framework.py
Normal file
@@ -0,0 +1,20 @@
|
||||
REST_FRAMEWORK = {
|
||||
"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema",
|
||||
"DEFAULT_AUTHENTICATION_CLASSES": (
|
||||
"rest_framework_simplejwt.authentication.JWTAuthentication",
|
||||
),
|
||||
"DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",),
|
||||
"DEFAULT_THROTTLE_RATE": {
|
||||
"anon": "1000/day",
|
||||
"user": "1000/day",
|
||||
"user_create": "1000/day",
|
||||
},
|
||||
}
|
||||
|
||||
SPECTACULAR_SETTINGS = {
|
||||
"SWAGGER_UI_DIST": "SIDECAR",
|
||||
"SWAGGER_UI_FAVICON_HREF": "SIDECAR",
|
||||
"REDOC_DIST": "SIDECAR",
|
||||
"TITLE": "Django Rest API",
|
||||
"DESCRIPTION": "Django Rest API",
|
||||
}
|
||||
Reference in New Issue
Block a user