| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Servant.API.ReqBody
Documentation
type ReqBody = ReqBody' '[Required, Strict] Source #
Extract the request body as a value of type a.
Example:
>>>-- POST /books>>>type MyApi = "books" :> ReqBody '[JSON] Book :> Post '[JSON] Book