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

Safe HaskellSafe-Inferred
LanguageHaskell2010

Servant.API.Put

Synopsis

Documentation

data Put contentTypes a Source

Endpoint for PUT requests, usually used to update a ressource. The type a is the type of the response body that's returned.

Example:

>>> -- PUT /books/:isbn >>> -- with a Book as request body, returning the updated Book >>> type MyApi = "books" :> Capture "isbn" Text :> ReqBody '[JSON] Book :> Put '[JSON] Book 

Instances

HasLink * (Put y r) 
Typeable ([*] -> * -> *) Put 
type MkLink * (Put y r) = URI