| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Servant.API.Capture
Documentation
type Capture = Capture' ('[] :: [Type]) 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
data Capture' (mods :: [Type]) (sym :: Symbol) a Source #
Capture which can be modified. For example with Description.
data CaptureAll (sym :: Symbol) a Source #
Capture all remaining values from the request path under a certain type
a.
Example:
>>>-- GET /src/*>>>type MyAPI = "src" :> CaptureAll "segments" Text :> Get '[JSON] SourceFile
Instances
| (ToHttpApiData v, HasLink sub) => HasLink (CaptureAll sym v :> sub :: Type) Source # | |
Defined in Servant.Links | |
| type MkLink (CaptureAll sym v :> sub :: Type) a Source # | |
Defined in Servant.Links | |