django-rest-swagger icon indicating copy to clipboard operation
django-rest-swagger copied to clipboard

Can't add custom headers

Open xabicasado opened this issue 4 years ago • 0 comments

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,

xabicasado avatar Sep 12 '19 10:09 xabicasado