Copyright | (c) 2020-2021 Tim Emiola |
---|---|
License | BSD3 |
Maintainer | Tim Emiola <adetokunbo@users.noreply.github.com> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Specifies the API provided by the demo service.
API route definition
type ContactsAPI = ("contacts" :> (Capture "contactid" ContactID :> Get '[JSON] Contact)) :<|> ("contacts" :> (ReqBody '[JSON] Contact :> Post '[JSON] ContactID)) Source #
API allowing Contact
creation and retrieval.
contactsAPI :: Proxy ContactsAPI Source #
For convenience in Servant combinators where a proxy is required.