mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-16 02:16:16 +00:00
swagger
This commit is contained in:
@ -112,6 +112,30 @@ DATABASES = {
|
|||||||
'PORT':os.getenv('DB_PORT'),
|
'PORT':os.getenv('DB_PORT'),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SWAGGER_SETTINGS = {
|
||||||
|
"exclude_namespaces": [],
|
||||||
|
"api_version": '0.1',
|
||||||
|
"api_path": "",
|
||||||
|
"enabled_methods": [
|
||||||
|
'get',
|
||||||
|
'post',
|
||||||
|
'put',
|
||||||
|
'patch',
|
||||||
|
'delete'
|
||||||
|
],
|
||||||
|
"api_key": '',
|
||||||
|
"is_authenticated": True,
|
||||||
|
"is_superuser": False,
|
||||||
|
|
||||||
|
'SECURITY_DEFINITIONS': {
|
||||||
|
"api_key": {
|
||||||
|
"type": "apiKey",
|
||||||
|
"name": "Authorization",
|
||||||
|
"in": "header",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
# Password validation
|
# Password validation
|
||||||
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
|
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user