Contributions
swagger-editor, use token from a response to bearer token
Hi community, I have a question that I cannot reply by myself, hope you can help me. What I want to do is: I have a swagger with 3 API calls (API1, API2, API3). API1 requires user and password, and it returns a token and other information in the response. That token is used as a Bearer token auth for API2 and API3. I want to pass the token replied for API1 automatically to API2 and API3 as a bearer token to skip the step where user copy and paste the token in the "Authorize" button. This can be done? how? Thanks a lot.554Views0likes1CommentRe: V3.0 Specify URL inside each API call
I found it, the solution to my question is overriding Servers inside the definition of each path. at level of tags, summary, description, operationId, etc. This include a section of "servers" on each API call just above the "execution" button. Screenshot of example, thanks!692Views0likes0CommentsV3.0 Specify URL inside each API call
Hi, I'm trying to know if I could specify the server inside the definition of each API. What I'm trying to avoid is having the servers in the drop-down list. Or maybe having different sections in same swagger (each one with his own server sections, its own paths section, etc) ? Thanks in advance.Solved701Views0likes1CommentV3.0 Authenticate with user and password and bearer
I'm trying to authenticate using user and password but I have two problems: 1. I need to change the name of fields "Username" and "Password" for "email" and "pw". 2. When I see the curl, it is sending: -H 'Authorization: Basic cnViZW4ubWFnYW5 and I need to see -H 'Authorization: Bearer cnViZW4ubWFnYW5 but if I change the securityScheme definition from basic to bearer, it requires me the token and no user and password.540Views0likes2Comments