This is boilerplate project for running Swagger UI with Webpack. It exists because:
- I wanted an easy way of slamming multiple API specifications into a Swagger UI-based project and running it locally.
- Using NPM/Webpack means my dependencies can be kept up-to-date easily.
Sure there's other ways of doing this, but still...
There's also a Redoc page - although this is CDN-based as I am lazy. I removed the Redoc version for the time being.
To use this project clone and cd into it then:
npm i cp [your Swagger/OpenAPI specifications as YAML] src/specs npm run dev
- Parameterise API specification document name.
scripts/rewrite-urls.jsas a Webpack plugin.