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

Adding Swagger settings to describe API authentication correctly. Fixes #1826

This commit is contained in:
Erik Hetland
2018-06-29 22:01:01 +02:00
parent 8008015082
commit 943ec0b64b

View File

@ -268,7 +268,14 @@ SWAGGER_SETTINGS = {
'utilities.custom_inspectors.NullablePaginatorInspector',
'drf_yasg.inspectors.DjangoRestResponsePagination',
'drf_yasg.inspectors.CoreAPICompatInspector',
]
],
'SECURITY_DEFINITIONS': {
'Bearer': {
'type': 'apiKey',
'name': 'Authorization',
'in': 'header',
}
}
}