Merge pull request #2210 from eriktm/develop

Adding Swagger settings to describe API authentication correctly.
This commit is contained in:
Jeremy Stretch 2018-07-02 15:50:37 -04:00 committed by GitHub
commit 6ce9f8f291
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,6 +269,13 @@ SWAGGER_SETTINGS = {
'drf_yasg.inspectors.DjangoRestResponsePagination',
'drf_yasg.inspectors.CoreAPICompatInspector',
],
'SECURITY_DEFINITIONS': {
'Bearer': {
'type': 'apiKey',
'name': 'Authorization',
'in': 'header',
}
},
'VALIDATOR_URL': None,
}