servant-0.2.1: A family of combinators for defining webservices APIs

Safe HaskellSafe-Inferred
LanguageHaskell2010

Servant.API.Post

Synopsis

Documentation

data Post a Source

Endpoint for POST requests. The type variable represents the type of the response body (not the request body, use RQBody for that).

Example:

           -- POST /books
           -- with a JSON encoded Book as the request body
           -- returning the just-created Book
type MyApi = "books" :> ReqBody Book :> Post Book

Instances

VLinkHelper * (Post x) 
Typeable (* -> *) Post