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

Can't add custom headers #811

@xabicasado

Description

@xabicasado

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions