on fb71eb8 help sign in
15 lines 450 B history raw
1{-# LANGUAGE DeriveDataTypeable #-}
2module Servant.API.Put where
4import Data.Typeable ( Typeable )
6-- | Endpoint for PUT requests, usually used to update a ressource.
7-- The type @a@ is the type of the response body that's returned.
8--
9-- Example:
10--
11-- > -- PUT /books/:isbn
12-- > -- with a Book as request body, returning the updated Book
13-- > type MyApi = "books" :> Capture "isbn" Text :> ReqBody Book :> Put Book
14data Put a
15 deriving Typeable