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

Safe HaskellSafe-Inferred
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 Book