Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Can't add custom headers #811

Open
xabicasado opened this issue Sep 12, 2019 · 0 comments
Open

Can't add custom headers #811

xabicasado opened this issue Sep 12, 2019 · 0 comments

Comments

@xabicasado
Copy link

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,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant