# servant-swagger-ui
*Provide a Swagger UI for your Servant API*
"[Swagger UI](http://swagger.io/swagger-ui/) allows anyone — be it your development team or your end consumers — to visualize and interact with the API’s resources without having any of the implementation logic in place."
[](https://travis-ci.org/phadej/servant-swagger-ui)
[](http://hackage.haskell.org/package/servant-swagger-ui)
[](http://stackage.org/lts-5/package/servant-swagger-ui)
[](http://stackage.org/nightly/package/servant-swagger-ui)
## Example

Check [`example/Main.hs`](https://github.com/phadej/servant-swagger-ui/blob/master/example/Main.hs) for an example.
## Development
### Updating of bundled swagger-ui version:
- Extract `dist` directory of `swagger-ui` into `swagger-dist-<version>`
- move `index.html` into `index.html.tmpl`, do the diff, port the changes
- search replace the embbeded directory (in `Servant/Swagger/UI.hs`)
- test it works