Repository navigation
Add authorization token to all requests from UI #8056
Answered
by
lexicalunit
lexicalunit
asked this question in
Q&A
|
I've generated my $ docker run -p 80:8080 -e SWAGGER_JSON=/schema.yaml -v ${PWD}/schema.yaml:/schema.yaml swaggerapi/swagger-uiAt first whenever I tried to test an API call I was getting an error because my base URL was wrong. My API is running locally on servers:
- url: http://localhost:8000Now though I still need to provide an authorization bearer token so that I can actually hit my API. Is there some way to just tell swagger UI, hey, add the following header to all the requests you make! |
Answered by
lexicalunit
Jun 7, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Ah, there's a way to provide the auth token via the swagger UI. First click:
Then provide the token here: