The servant-swagger-ui package

[Tags:bsd3, library, test]

Provide embedded swagger UI for servant and swagger (i.e. servant-swagger)


[Skip to Readme]

Properties

Versions 0.1.0.2.1.4, 0.1.1.2.1.4, 0.2.0.2.1.5, 0.2.1.2.2.8, 0.2.2.2.2.8
Change log CHANGELOG.md
Dependencies base (>=4.7 && <4.10), blaze-markup (>=0.7.0.2 && <0.9), bytestring (>=0.10.4.0 && <0.11), directory (>=1.2.1.0 && <1.4), either, file-embed (>=0.0.9 && <0.1), filepath (>=1.3.0.2 && <1.5), http-media (>=0.6.2 && <0.8), servant (>=0.4.4.5 && <0.11), servant-blaze (>=0.4.4.5 && <0.9), servant-server (>=0.4.4.5 && <0.11), servant-swagger (>=1.0.3 && <1.2), swagger2 (>=2.0.1 && <2.2), template-haskell (>=2.9 && <2.12), text (>=1.2.0.6 && <1.3), transformers (>=0.3 && <0.6), transformers-compat (>=0.3 && <0.6), wai-app-static (>=3.0.1.1 && <3.2) [details]
License BSD3
Author Oleg Grenrus <oleg.grenrus@iki.fi>
Maintainer Oleg Grenrus <oleg.grenrus@iki.fi>
Category Web
Home page https://github.com/phadej/servant-swagger-ui#readme
Bug tracker https://github.com/phadej/servant-swagger-ui/issues
Source repository head: git clone https://github.com/phadej/servant-swagger-ui
Uploaded Thu Feb 2 04:49:08 UTC 2017 by phadej
Distributions LTSHaskell:0.2.2.2.2.8, NixOS:0.2.2.2.2.8, Stackage:0.2.2.2.2.8, Tumbleweed:0.2.2.2.2.8
Downloads 228 total (18 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2017-02-02 [all 1 reports]

Modules

[Index]

Flags

NameDescriptionDefaultType
servant-0-5Whether use servant >= 0.5EnabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for servant-swagger-ui

Readme for servant-swagger-ui-0.2.2.2.2.8

servant-swagger-ui

Servant support for yaml

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-&lt;version&gt;
  • 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