Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Host swagger-ui based on WebGear API specifications
Synopsis
- swaggerUI :: (StdHandler h m, Sets h [RequiredResponseHeader "Content-Type" Text, Body HTML ByteString, Body JSON apiSpec, UnknownContentBody] Response) => apiSpec -> RequestHandler h ts
Documentation
:: (StdHandler h m, Sets h [RequiredResponseHeader "Content-Type" Text, Body HTML ByteString, Body JSON apiSpec, UnknownContentBody] Response) | |
=> apiSpec | Swagger 2.0 or OpenAPI 3.x specification |
-> RequestHandler h ts |
An API that hosts a few endpoints for swagger-ui.
/
- redirects to/index.html
/index.html
- UI entry point for swagger-ui/swagger.json
- Swagger/OpenAPI specification in json format/...
- Other UI assets required for swagger-ui