2014-10-28 10:12:25 +01:00
|
|
|
module Servant.API (
|
|
|
|
|
|
|
|
-- * Combinators
|
2014-10-28 12:36:32 +01:00
|
|
|
-- | Type-level combinator for expressing subrouting: @':>'@
|
2014-10-28 10:12:25 +01:00
|
|
|
module Servant.API.Sub,
|
2014-10-28 12:36:32 +01:00
|
|
|
-- | Type-level combinator for alternative endpoints: @':<|>'@
|
2014-10-28 10:12:25 +01:00
|
|
|
module Servant.API.Union,
|
|
|
|
|
|
|
|
-- * Accessing information from the request
|
2014-10-28 12:36:32 +01:00
|
|
|
-- | Capturing parts of the url path as parsed values: @'Capture'@
|
2014-10-28 10:12:25 +01:00
|
|
|
module Servant.API.Capture,
|
2014-10-28 12:36:32 +01:00
|
|
|
-- | Retrieving parameters from the query part of the 'URI': @'GetParam'@
|
2014-10-28 10:12:25 +01:00
|
|
|
module Servant.API.GetParam,
|
2014-10-28 12:36:32 +01:00
|
|
|
-- | Accessing the request's body: @'RQBody'@
|
2014-10-28 10:12:25 +01:00
|
|
|
module Servant.API.RQBody,
|
|
|
|
|
|
|
|
-- * Actual endpoints, distinguished by HTTP method
|
|
|
|
-- | GET requests
|
|
|
|
module Servant.API.Get,
|
|
|
|
-- | POST requests
|
|
|
|
module Servant.API.Post,
|
2014-10-28 10:23:52 +01:00
|
|
|
-- | DELETE requests
|
|
|
|
module Servant.API.Delete,
|
|
|
|
-- | PUT requests
|
|
|
|
module Servant.API.Put,
|
2014-10-25 01:27:39 +02:00
|
|
|
) where
|
|
|
|
|
|
|
|
import Servant.API.Capture
|
2014-10-28 09:14:10 +01:00
|
|
|
import Servant.API.Delete
|
2014-10-25 01:27:39 +02:00
|
|
|
import Servant.API.Get
|
|
|
|
import Servant.API.GetParam
|
|
|
|
import Servant.API.Post
|
2014-10-28 09:17:28 +01:00
|
|
|
import Servant.API.Put
|
2014-10-25 01:27:39 +02:00
|
|
|
import Servant.API.RQBody
|
|
|
|
import Servant.API.Sub
|
2014-10-28 10:12:25 +01:00
|
|
|
import Servant.API.Union
|