Merge pull request #2210 from eriktm/develop
Adding Swagger settings to describe API authentication correctly.
This commit is contained in:
commit
6ce9f8f291
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue