| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Server.Handlers.GroupHandlers
Documentation
type GroupAPI = "groups" :> ((Auth AuthMethod Token :> (ReqBody '[JSON] GroupCreate :> Post '[JSON] GroupID)) :<|> ((Auth AuthMethod Token :> Get '[JSON] [GroupOverview]) :<|> ((Auth AuthMethod Token :> (Capture "groupID" GroupID :> Get '[JSON] Group)) :<|> ((Auth AuthMethod Token :> (Capture "groupID" GroupID :> Delete '[JSON] NoContent)) :<|> (Auth AuthMethod Token :> (Capture "groupID" GroupID :> (ReqBody '[JSON] GroupPatch :> Patch '[JSON] GroupOverview))))))) Source #
groupServer :: Server GroupAPI Source #