Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Capture sym a
Documentation
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
Safe Haskell | None |
---|---|
Language | Haskell2010 |
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