on d8b0e4c help sign in
49 lines 1.4 kB history raw
1module Servant.API (
3 -- * Combinators
4 -- | Type-level combinator for expressing subrouting: @':>'@
5 module Servant.API.Sub,
6 -- | Type-level combinator for alternative endpoints: @':<|>'@
7 module Servant.API.Alternative,
9 -- * Accessing information from the request
10 -- | Capturing parts of the url path as parsed values: @'Capture'@
11 module Servant.API.Capture,
12 -- | Retrieving parameters from the query string of the 'URI': @'QueryParam'@
13 module Servant.API.QueryParam,
14 -- | Accessing the request body as a JSON-encoded type: @'ReqBody'@
15 module Servant.API.ReqBody,
17 -- * Actual endpoints, distinguished by HTTP method
18 -- | GET requests
19 module Servant.API.Get,
20 -- | POST requests
21 module Servant.API.Post,
22 -- | DELETE requests
23 module Servant.API.Delete,
24 -- | PUT requests
25 module Servant.API.Put,
27 -- * Untyped endpoints
28 -- | Plugging in a wai 'Network.Wai.Application'
29 module Servant.API.Raw,
31 -- * Utilities
32 -- | QuasiQuotes for endpoints
33 module Servant.Utils.ApiQuasiQuoting,
34 -- | Type-safe internal URLs
35 module Servant.Utils.Links,
36 ) where
38import Servant.API.Alternative
39import Servant.API.Capture
40import Servant.API.Delete
41import Servant.API.Get
42import Servant.API.Post
43import Servant.API.Put
44import Servant.API.QueryParam
45import Servant.API.Raw
46import Servant.API.ReqBody
47import Servant.API.Sub
48import Servant.Utils.ApiQuasiQuoting (sitemap)
49import Servant.Utils.Links (mkLink)