1{-# LANGUAGE DataKinds #-}
2{-# LANGUAGE DeriveDataTypeable #-}
3{-# LANGUAGE KindSignatures #-}
4module Servant.API.Put where
6import Data.Typeable ( Typeable )
8-- | Endpoint for PUT requests, usually used to update a ressource.
9-- The type @a@ is the type of the response body that's returned.
13-- > -- PUT /books/:isbn
14-- > -- with a Book as request body, returning the updated Book
15-- > type MyApi = "books" :> Capture "isbn" Text :> ReqBody Book :> Put '[JSON] Book
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