Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type API = API :<|> SwaggerSchemaUI "swagger-ui" "swagger.json"
- app :: Config -> Application
- api :: Proxy API
- server :: Config -> Server API
- pinPonSwagger :: Swagger
- writeSwaggerJSON :: IO ()
Types
type API = API :<|> SwaggerSchemaUI "swagger-ui" "swagger.json" Source #
Combine all of the various individual service APIs (plus Swagger support) into a single API type.
Servant / WAI functions
app :: Config -> Application Source #
A WAI Application
which runs the service, using the
given Config
.
Swagger
Convenience functions
writeSwaggerJSON :: IO () Source #