Swagger UI 2.2.10 with API_URL, API_KEY and OAUTH2 injection (45 MB)
$ docker run -d -p 80:80 -e API_URL=http://localhost:4000/swagger schickling/swagger-ui
API_URL- Swagger endpoint for your API
API_KEY- Default API Key (optional)
PORT- Default port to run on (optional)
VALIDATOR_URL- Swagger validator (optional)
OAUTH_CLIENT_ID- oAuth2 client ID (optional, use empty to remove)
OAUTH_CLIENT_SECRET- oAuth2 client secret (optional, use empty to remove)
OAUTH_REALM- oAuth2 realm (optional, use empty to remove)
OAUTH_APP_NAME- oAuth2 app name (optional, use empty to remove)
OAUTH_ADDITIONAL_PARAMS- oAuth2 query string additional params (optional)
**None** should not be used for above defined variables.
docker exec -it desperate_ptolemy sh
how to enter container ??
Thanks for putting this together!
Is there a way somehow to customize the JSON Schema validation url too (or just to set it null) -- like the api url? (the reason for me asking is this: http://stackoverflow.com/questions/27808804/swagger-ui-shows-error-validation-when-deployed)
Is there a way to get the API_URL from a linked container in docker-compose?
Following is what I have been trying, but can't find a way to get it working.
swagger-ui: image: schickling/swagger-ui ports: - 8080:80 links: - user-service:usersvc environment: - API_URL=usersvc
Hi, in the container there is the env variable SWAGGER_JSON that is set to /app/swagger.json; I understood that it is a way to indicate a local .json file with the swagger specification of my api.
I tried to cp a myswagger.json into the container (in the folder app) but nothing wrong. In particular I cannot see the myswagger.json in the folder app of the container.
Thanks for putting this together. The addition of version tags would help achieve a consistent production environment.