Add authorization token to all requests from UI #8056
-
I've generated my $ docker run -p 80:8080 -e SWAGGER_JSON=/schema.yaml -v ${PWD}/schema.yaml:/schema.yaml swaggerapi/swagger-ui At 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:8000 Now 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!
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ah, there's a way to provide the auth token via the swagger UI. First click: |
Beta Was this translation helpful? Give feedback.
Ah, there's a way to provide the auth token via the swagger UI. First click:
Then provide the token here: