pinpon-0.2.0.1: A gateway for various cloud notification services

Safe HaskellNone
LanguageHaskell2010

Network.PinPon.SwaggerAPI

Contents

Synopsis

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.

server :: Config -> Server API Source #

A Servant Server which serves the API (including the Swagger schema) on the given Config.

Normally you will just use app, but this function is exported so that you can extend/wrap API.

Swagger

Convenience functions