Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Get a
Documentation
Endpoint for simple GET requests. Serves the result as JSON.
Example:
type MyApi = "books" :> Get [Book]
VLinkHelper * (Get x) | |
ToJSON result => HasServer (Get result) | When implementing the handler for a If successfully returning a value, we just require that its type has
a |
Typeable (* -> *) Get | |
type Server (Get result) = EitherT (Int, String) IO result |