Provide embedded swagger UI for servant and swagger
Go to file
2017-10-25 14:41:18 +03:00
example Add Post endpoint 2017-10-25 13:38:16 +03:00
jensoleg-dist Remove .map files 2017-10-25 14:32:50 +03:00
src/Servant/Swagger Update to swagger-ui-3.4.0 2017-10-25 13:58:20 +03:00
swagger-ui-dist-3.4.0 Remove .map files 2017-10-25 14:32:50 +03:00
.gitignore Support GHC-8.2 2017-07-15 10:46:03 +03:00
.stylish-haskell.yaml Introduce SwaggerSchemaUI 2016-08-19 15:31:10 +03:00
.travis.yml Support GHC-8.2 2017-07-15 10:46:03 +03:00
CHANGELOG.md Support servant-0.11 2017-05-24 10:20:02 +03:00
hackage-docs.sh 🌅 2016-01-31 11:24:59 +02:00
index.html.tmpl Update to swagger-ui-3.4.0 2017-10-25 13:58:20 +03:00
jensoleg.index.html.tmpl Updates 2016-12-20 2016-12-20 21:30:34 +02:00
LICENSE 🌅 2016-01-31 11:24:59 +02:00
README.md Update README.md 2017-04-20 10:59:03 +02:00
screenshot.png Swagger UI 3.0 2017-07-24 16:45:53 +03:00
servant-swagger-ui.cabal Remove .map files 2017-10-25 14:32:50 +03:00
Setup.hs 🌅 2016-01-31 11:24:59 +02:00
stack-lts-2.yaml Support servant-0.5 2016-03-22 11:03:52 +02:00
stack-lts-5.yaml Support 7.8 2016-02-15 12:29:15 +02:00
stack.yaml Updates 2016-12-20 2016-12-20 21:30:34 +02:00

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 APIs resources without having any of the implementation logic in place."

Build Status Hackage Stackage LTS 5 Stackage Nightly

Example

example screenshot

Check 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