django-rest-swagger
django-rest-swagger copied to clipboard
Can't add custom headers
Hi,
Because of my API's specific settings, I need to pass an extra numeric param on header at every request I make. I'm unable to do this and I didn't find any info refering to this on the official docs, appart from the default 'api_key'
, which works fine with django-rest-swagger==2.1.2.
'SECURITY_DEFINITIONS': {
'api_key': {
'type': 'apiKey',
'name': 'Authorization',
'in': 'header'
}
}
Is there a way to send extra params on header either on Authorization (adding it to the current apiKey and sending both of them, which I didn't achive) or at Parameters section of a concrete method?
Regards,