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

WebGear.OpenApi.Trait.Body

Description

OpenApi implementation of Body trait.

Documentation

Orphan instances

Set (OpenApiHandler m :: Type -> Type -> Type) UnknownContentBody Source # 
Instance details

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

Methods

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

(ToSchema val, MIMEType mt) => Set (OpenApiHandler m :: Type -> Type -> Type) (Body mt val) 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)) #