You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
822 B

9 years ago
9 years ago
  1. # swagger-ui
  2. Swagger UI 2.2.10 with API_URL, API_KEY and OAUTH2 injection (45 MB)
  3. ## Usage
  4. ```sh
  5. $ docker run -d -p 80:80 -e API_URL=http://localhost:4000/swagger schickling/swagger-ui
  6. ```
  7. ### Variables
  8. * `API_URL` - Swagger endpoint for your API
  9. * `API_KEY` - Default API Key (optional)
  10. * `PORT` - Default port to run on (optional)
  11. * `VALIDATOR_URL` - Swagger validator (optional)
  12. * `OAUTH_CLIENT_ID` - oAuth2 client ID (optional, use empty to remove)
  13. * `OAUTH_CLIENT_SECRET` - oAuth2 client secret (optional, use empty to remove)
  14. * `OAUTH_REALM` - oAuth2 realm (optional, use empty to remove)
  15. * `OAUTH_APP_NAME` - oAuth2 app name (optional, use empty to remove)
  16. * `OAUTH_ADDITIONAL_PARAMS` - oAuth2 query string additional params (optional)
  17. Variable value `**None**` should not be used for above defined variables.