1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

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

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,
}