| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
WebGear.Swagger.UI
Description
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]) => apiSpec -> RequestHandler h ts
Documentation
Arguments
| :: (StdHandler h m, Sets h [RequiredResponseHeader "Content-Type" Text, Body HTML ByteString, Body JSON apiSpec, UnknownContentBody]) | |
| => 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