webgear-openapi-1.1.1: Composable, type-safe library to build HTTP API servers
Safe HaskellSafe-Inferred
LanguageHaskell2010

WebGear.OpenApi.Trait.Body

Description

OpenApi implementation of Body trait.

Orphan instances

Set (OpenApiHandler m :: TYPE LiftedRep -> TYPE LiftedRep -> TYPE LiftedRep) UnknownContentBody Response Source # 
Instance details

(ToSchema val, MIMEType mt) => Get (OpenApiHandler m :: TYPE LiftedRep -> TYPE LiftedRep -> TYPE LiftedRep) (Body mt val) Request Source # 
Instance details

Methods

getTrait :: forall (ts :: [Type]). Body mt val -> OpenApiHandler m (With Request ts) (Either (Absence (Body mt val) Request) (Attribute (Body mt val) Request)) #

(ToSchema val, MIMEType mt) => Set (OpenApiHandler m :: TYPE LiftedRep -> TYPE LiftedRep -> TYPE LiftedRep) (Body mt val) Response Source # 
Instance details

Methods

setTrait :: forall (ts :: [Type]). Body mt val -> (With Response ts -> Response -> Attribute (Body mt val) Response -> With Response (Body mt val ': ts)) -> OpenApiHandler m (With Response ts, Attribute (Body mt val) Response) (With Response (Body mt val ': ts)) #