servant-swagger-ui
servant-swagger-ui copied to clipboard
Provide embedded swagger UI for servant and swagger
trafficstars
servant-swagger-ui
Provide a Swagger UI for your Servant API
"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."
Example

Check servant-swagger-ui-example/src/Main.hs for an example.
Development
Updating of bundled swagger-ui version:
- Extract
distdirectory ofswagger-uiintoswagger-dist-<version>. Remove the*.mapfiles. - update
extra-source-filesin the.cabal - move
index.htmlintoindex.html.tmpl, do the diff, port the changes - search replace the embbeded directory (in
Servant/Swagger/UI.hs) - test it works