Forum Discussion

RubenM55's avatar
RubenM55
Occasional Contributor
12 months ago

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.