Provide embedded swagger UI for servant and swagger
Go to file
Oleg Grenrus 72674601cd
Merge pull request #72 from haskell-servant/updates
Update to swagger-ui-3.23.11
2019-10-10 14:52:58 +03:00
servant-swagger-ui Update to swagger-ui-3.23.11 2019-10-10 14:24:01 +03:00
servant-swagger-ui-core Allow base-4.13, base-compat-0.11 ... 2019-09-16 09:10:58 +03:00
servant-swagger-ui-example Allow base-4.13, base-compat-0.11 ... 2019-09-16 09:10:58 +03:00
servant-swagger-ui-jensoleg Allow base-4.13, base-compat-0.11 ... 2019-09-16 09:10:58 +03:00
servant-swagger-ui-redoc Update redoc dist to v1.22.3 2019-10-02 18:50:52 +02: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 Allow base-4.13, base-compat-0.11 ... 2019-09-16 09:10:58 +03:00
cabal.haskell-ci Allow servant-0.16 2019-02-27 20:11:40 +02:00
cabal.project WIP: split servant-swagger-ui into many packages 2018-04-05 14:45:22 +03:00
README.md Update links 2018-12-12 11:44:15 +13:00
screenshot.png Support servant-0.13 2018-02-09 20:32:46 +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 servant-swagger-ui-example/src/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