https://github.com/haskell-servant/servant-swagger-ui
Provide embedded swagger UI for servant and swagger
https://github.com/haskell-servant/servant-swagger-ui
hacktoberfest haskell
Last synced: 3 months ago
JSON representation
Provide embedded swagger UI for servant and swagger
- Host: GitHub
- URL: https://github.com/haskell-servant/servant-swagger-ui
- Owner: haskell-servant
- Created: 2016-01-31T09:21:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-31T14:47:52.000Z (3 months ago)
- Last Synced: 2025-04-09T15:08:05.999Z (3 months ago)
- Topics: hacktoberfest, haskell
- Language: JavaScript
- Homepage:
- Size: 16.4 MB
- Stars: 46
- Watchers: 5
- Forks: 35
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# servant-swagger-ui
*Provide a Swagger UI for your Servant API*
"[Swagger UI](http://swagger.io/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."
[](https://travis-ci.org/phadej/servant-swagger-ui)
[](http://hackage.haskell.org/package/servant-swagger-ui)
[](http://stackage.org/lts-5/package/servant-swagger-ui)
[](http://stackage.org/nightly/package/servant-swagger-ui)## Example

Check [`servant-swagger-ui-example/src/Main.hs`](https://github.com/haskell-servant/servant-swagger-ui/blob/master/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