Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The way to set authorization data to header in recent version swagger-ui #3383

Closed
jeyraof opened this issue Jul 14, 2017 · 1 comment
Closed

Comments

@jeyraof
Copy link

jeyraof commented Jul 14, 2017

How to can I set authorizations header to load previous version swagger docs?

past version

window.swaggerUi = new SwaggerUi({
        url: url,

        authorizations: { /// This.
          key: new SwaggerClient.ApiKeyAuthorization("Dist-Api-Key", "swagger-dist-api-key", "header")
        },

        dom_id: "swagger-ui-container",
        supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
        onComplete: function(swaggerApi, swaggerUi){
          if(window.SwaggerTranslator) {
            wi
...
@shockey
Copy link
Contributor

shockey commented Jul 26, 2017

This is not yet implemented in v3, see here: #2915

@shockey shockey closed this as completed Aug 15, 2017
@lock lock bot locked and limited conversation to collaborators Jul 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants