Merge pull request #39 from KiwiTechLLC/sprint2

swagger
This commit is contained in:
dilipshrivastwa-kiwi
2023-07-07 17:04:59 +05:30
committed by GitHub

View File

@ -112,6 +112,30 @@ DATABASES = {
'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
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators