webgear-openapi-1.0.3: Composable, type-safe library to build HTTP API servers
Safe HaskellNone
LanguageHaskell2010

WebGear.OpenApi.Trait.Body

Description

OpenApi implementation of Body trait.

Orphan instances

ToSchema val => Get (OpenApiHandler m :: Type -> Type -> Type) (JSONBody val) Request Source # 
Instance details

Methods

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

ToSchema val => Get (OpenApiHandler m :: Type -> Type -> Type) (Body val) Request Source # 
Instance details

Methods

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

ToSchema val => Set (OpenApiHandler m :: Type -> Type -> Type) (JSONBody val) Response Source # 
Instance details

Methods

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

ToSchema val => Set (OpenApiHandler m :: Type -> Type -> Type) (Body val) Response Source # 
Instance details

Methods

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