Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data WithMatrixParams path paramSpecs
- data MatrixParam key a
Documentation
data WithMatrixParams path paramSpecs Source #
data MatrixParam key a Source #
Expresses matrix parameters for path segments in APIs, e.g.
/books;author=name
would be represented as:
>>>
import Servant
>>>
>>>
type MyApi = "books" :> MatrixParam "author" String :> Get '[JSON] [String]