Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data (path :: k) :> a
Documentation
data (path :: k) :> a infixr 4 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