1{-# LANGUAGE DeriveDataTypeable #-}
2{-# LANGUAGE DataKinds #-}
3{-# LANGUAGE KindSignatures #-}
4module Servant.API.Patch where
6import Data.Typeable ( Typeable )
8-- | Endpoint for PATCH requests. The type variable represents the type of the
9-- response body (not the request body, use 'Servant.API.ReqBody.ReqBody' for
12-- If the HTTP response is empty, only () is supported.
17-- > -- with a JSON encoded Book as the request body
18-- > -- returning the just-created Book
19-- > type MyApi = "books" :> ReqBody Book :> Patch '[JSON] Book
20data Patch (contentTypes::[*]) a
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list