# 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." [![Build Status](https://travis-ci.org/phadej/servant-swagger-ui.svg?branch=master)](https://travis-ci.org/phadej/servant-swagger-ui) [![Hackage](https://img.shields.io/hackage/v/servant-swagger-ui.svg)](http://hackage.haskell.org/package/servant-swagger-ui) [![Stackage LTS 5](http://stackage.org/package/servant-swagger-ui/badge/lts-5)](http://stackage.org/lts-5/package/servant-swagger-ui) [![Stackage Nightly](http://stackage.org/package/servant-swagger-ui/badge/nightly)](http://stackage.org/nightly/package/servant-swagger-ui) ## Example ![example screenshot](https://raw.githubusercontent.com/phadej/servant-swagger-ui/master/screenshot.png) 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>`. Remove the `*.map` files. - update `extra-source-files` in the `.cabal` - 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