servant-swagger-ui: Servant swagger ui

[ bsd3, library, servant, swagger, web ] [ Propose Tags ] [ Report a vulnerability ]

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


[Skip to Readme]

Flags

Automatic Flags
NameDescriptionDefault
servant-0-5

Whether use servant >= 0.5

Enabled

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

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Versions [RSS] 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, 0.2.3.2.2.8, 0.2.4.3.0.20, 0.2.4.3.4.0, 0.2.5.3.9.1, 0.3.0.3.13.2, 0.3.2.3.19.3, 0.3.3.3.22.2, 0.3.4.3.22.2, 0.3.4.3.23.11, 0.3.4.3.36.1, 0.3.4.3.37.2, 0.3.5.3.47.1, 0.3.5.3.52.5, 0.3.5.4.5.0, 0.3.5.5.0.0, 0.3.5.5.0.1
Change log CHANGELOG.md
Dependencies base (>=4.7 && <4.10), blaze-markup (>=0.7.0.2 && <0.8), bytestring (>=0.10.4.0 && <0.11), directory (>=1.2.1.0 && <1.3), 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.10), servant-blaze (>=0.4.4.5 && <0.9), servant-server (>=0.4.4.5 && <0.10), 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]
Tested with ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.1
License BSD-3-Clause
Author Oleg Grenrus <oleg.grenrus@iki.fi>
Maintainer Oleg Grenrus <oleg.grenrus@iki.fi>
Revised Revision 2 made by phadej at 2016-10-10T13:27:02Z
Category Web
Home page https://github.com/phadej/servant-swagger-ui#readme
Bug tracker https://github.com/phadej/servant-swagger-ui/issues
Source repo head: git clone https://github.com/phadej/servant-swagger-ui
Uploaded by phadej at 2016-08-20T09:55:04Z
Distributions LTSHaskell:0.3.5.5.0.0, NixOS:0.3.5.5.0.0, Stackage:0.3.5.5.0.1
Reverse Dependencies 7 direct, 4 indirect [details]
Downloads 21518 total (164 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-11-15 [all 2 reports]

Readme for servant-swagger-ui-0.2.0.2.1.5

[back to package description]

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