webgear-swagger-ui-1.2.0: Host swagger UI based on WebGear API specifications.
Safe HaskellSafe-Inferred
LanguageHaskell2010

WebGear.Swagger.UI

Description

Host swagger-ui based on WebGear API specifications

Synopsis

Documentation

swaggerUI Source #

Arguments

:: (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