- Create a Git repository to host your Swagger document.
- Download Swagger UI from https://github.com/swagger-api/swagger-ui/releases/tag/v4.12.0
- Extract the distribution and commit contents in \{SWAGGER}.zip\swagger-ui-{VERSION}\dist\* into repository created @ step 1.
- (Optional) Add any Swagger document json(e.g. my-sample-swagger.json) created into your repository (this will be the landing Swagger document you want to share with user).
- (Optional) Update swagger-initializer.js as below to point to landing Swagger document created @ step 4.
- Enable GitHub Pages.
- Access your Swagger document @ https://d1ck50n.github.io/sample-swagger (you will see landing Swagger document if you setup follow step 4 & 5) else you will see default Swagger sample.
- You can start browsing other Swagger document with it’s URL.