BSD-3-Clause licensed and maintained by Oleg Grenrus

Module documentation for

This version can be pinned in stack with:[email protected]:d3e5023a2e2d79c35c16bf2c9880a29dca86ad11609ee2b724df793e2710a9ad,4886


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.”

Build Status Hackage Stackage LTS 5 Stackage Nightly


example screenshot

Check example/Main.hs for an example.


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



    • Support servant-0.11

    • Support servant-0.10

    • Update to swagger-ui-2.2.8
    • Add support for jensoleg theme


    • Documentation and example improvements