servant-0.2.1: A family of combinators for defining webservices APIs
Servant.API.Alternative
Synopsis
data a :<|> b infixr 8 Source
Union of two APIs, first takes precedence in case of overlap.
Example:
type MyApi = "books" :> Get [Book] -- GET /books :<|> "books" :> ReqBody Book :> Post Book -- POST /books
Constructors