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

WebGear.OpenApi.Trait.QueryParam

Description

OpenApi implementation of QueryParam trait.

Orphan instances

(KnownSymbol name, ToSchema val, TraitAbsence (QueryParam 'Optional ps name val) Request) => Get (OpenApiHandler m :: TYPE LiftedRep -> TYPE LiftedRep -> TYPE LiftedRep) (QueryParam 'Optional ps name val) Request Source # 
Instance details

Methods

getTrait :: forall (ts :: [Type]). QueryParam 'Optional ps name val -> OpenApiHandler m (With Request ts) (Either (Absence (QueryParam 'Optional ps name val) Request) (Attribute (QueryParam 'Optional ps name val) Request)) #

(KnownSymbol name, ToSchema val, TraitAbsence (QueryParam 'Required ps name val) Request) => Get (OpenApiHandler m :: TYPE LiftedRep -> TYPE LiftedRep -> TYPE LiftedRep) (QueryParam 'Required ps name val) Request Source # 
Instance details

Methods

getTrait :: forall (ts :: [Type]). QueryParam 'Required ps name val -> OpenApiHandler m (With Request ts) (Either (Absence (QueryParam 'Required ps name val) Request) (Attribute (QueryParam 'Required ps name val) Request)) #