wire-api-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Wire.API.Routes.Internal.Cannon

Documentation

type API = "i" :> (Named "get-status" ("status" :> MultiVerb 'GET '[PlainText] '[RespondEmpty 200 "Service is alive."] ()) :<|> (Named "push-notification" ("push" :> (Capture "user" UserId :> (Capture "conn" ConnId :> (ReqBody '[JSON] RawJson :> MultiVerb 'POST '[JSON] '[ErrorResponse 'ClientGone, RespondEmpty 200 "Successfully pushed."] (Maybe ()))))) :<|> (Named "bulk-push-notifications" ("bulkpush" :> (ReqBody '[JSON] BulkPushRequest :> Post '[JSON] BulkPushResponse)) :<|> Named "check-presence" ("presences" :> (Capture "uid" UserId :> (Capture "conn" ConnId :> MultiVerb 'HEAD '[JSON] '[ErrorResponse 'PresenceNotRegistered, RespondEmpty 200 "Presence checked successfully."] (Maybe ()))))))) Source #