API = "users" :> QueryParam "page" Int :> Get '[JSON] GetUsersResponse :<|> "users" :> Capture "id" Int :> ReqBody '[JSON] PostUsersBody :> Patch '[JSON] Int type MyMap = Map Int String
API = "users" :> QueryParam "page" Int :> Get '[JSON] GetUsersResponse :<|> "users" :> Capture "id" Int :> ReqBody '[JSON] PostUsersBody :> Patch '[JSON] Int type MyMap = Map Int String 1BUI4FHNFOU1BSBNFUFS ΤϯυϙΠϯτͷߏΛͭͳ͙ ΤϯυϙΠϯτಉ࢜Λͭͳ͙ ୯७ͳUZQFBMJBT
= undefined patchUser :: Int -> PatchUsersBody -> Handler Int patchUser userId body = undefined api :: Server API api = getUsers :<|> putUsers aఆٛͱ࣮ͷҰக͕อূ͞Ε͍ͯΔ