Capture a value from the request path under a certain type a.
Example:
-- GET /books/:isbntype MyApi = "books" :> Capture "isbn" Text :> Get '[JSON] Book
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Moduleservant-0.20.2Haskell2010
Capture a value from the request path under a certain type a.
Example:
-- GET /books/:isbntype MyApi = "books" :> Capture "isbn" Text :> Get '[JSON] Book
Capture which can be modified. For example with Description.
Capture all remaining values from the request path under a certain type
a.
Example:
-- GET /src/*type MyAPI = "src" :> CaptureAll "segments" Text :> Get '[JSON] SourceFile
(ToHttpApiData v, HasLink sub) => HasLink (CaptureAll sym v :> sub)Defined in servant-0.20.2 · Servant.Linkstype MkLink (CaptureAll sym v :> sub) a = [v] -> MkLink sub aDefined in servant-0.20.2 · Servant.Links