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

Safe HaskellNone
LanguageHaskell2010

Servant.API.Capture

Synopsis

Documentation

data Capture sym a Source

Capture a value from the request path under a certain type a.

Example: >>> -- GET books:isbn >>> type MyApi = "books" :> Capture "isbn" Text :> Get '[JSON] Book

Instances

(ToText v, HasLink k sub) => HasLink * ((:>) * k (Capture * sym v) sub) 
Typeable (Symbol -> k -> *) (Capture k) 
type MkLink * ((:>) * k (Capture * sym v) sub) = v -> MkLink k sub