| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Servant.API.Sub
- data path :> a
Documentation
data path :> a infixr 9 Source #
The contained API (second argument) can be found under ("/" ++ path)
(path being the first argument).
Example:
>>>-- GET /hello/world>>>-- returning a JSON encoded World value>>>type MyApi = "hello" :> "world" :> Get '[JSON] World
Instances