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

WebGear.OpenApi.Trait.Path

Description

OpenApi implementation of path traits.

Orphan instances

Get (OpenApiHandler m :: Type -> Type -> Type) Path Source # 
Instance details

Methods

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

Get (OpenApiHandler m :: Type -> Type -> Type) PathEnd Source # 
Instance details

(KnownSymbol tag, ToSchema val) => Get (OpenApiHandler m :: Type -> Type -> Type) (PathVar tag val) Source # 
Instance details

Methods

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