Safe Haskell | None |
---|---|
Language | Haskell2010 |
HTTP API of the Daemon, Internal
Synopsis
- type Api = "event" :> (Get '[JSON] [Event] :<|> ((ReqBody '[JSON] Event :> PostCreated '[JSON] NoContent) :<|> (ReqBody '[JSON] Int :> PutAccepted '[JSON] (Maybe Event))))
- server :: Member History r => ServerT Api (Sem r)
- defaultPort :: Int
- serve :: Members [History, Reader NetConfig, Sync ServerReady, Log, Interrupt, Final IO] r => Sem r ()
Documentation
type Api = "event" :> (Get '[JSON] [Event] :<|> ((ReqBody '[JSON] Event :> PostCreated '[JSON] NoContent) :<|> (ReqBody '[JSON] Int :> PutAccepted '[JSON] (Maybe Event)))) Source #
The Servant API of the daemon, providing endpoints for getting all events and creating one.
defaultPort :: Int Source #
The default port, 9500.