Idris2Doc : Pact.API.Component

Pact.API.Component

(source)
Define the component of a path.

Definitions

dataComponent : Type->VectnType->Type->Type
Totality: total
Visibility: public export
Constructors:
StaticPath : String->Component () [()] Void
  Static path segment, e.g. "users"
Capture : String-> (a : Type) ->Componenta [a] Void
  Captured path segment, e.g. ":id"
ReqBody : (a : Type) ->Component () [()] a
  Request body, e.g. UserCreateRequest
(:/) : Componenttl [tl] Void->ComponenttrtsrreqBody->Componenttl (tl::tsr) reqBody
  Concatenate two paths, e.g. "users/:id/todos"
isReqBody : ComponentttsreqBody->Bool
Visibility: public export
PathReqBody : ComponentttsreqBody->Type
Visibility: public export
hasReqBody : ComponentttsreqBody->Bool
Visibility: public export
getCaptureName : Componentt{_:12307}{_:12306}->String
  Get the name of a capture path segment
@ path The path to get the name of
@ return The name of the capture path segment

Visibility: public export
matchPath : ComponentttsreqBody'->VectmString->AllFromHttpApiDatats=>EitherString (HVectts)
  Match a path against a list of path segments.

@path The path to match.
@segs The list of path segments.
@allprf A proof that all the path segments are path parameters.

Returns a list of the parsed path parameters.

Visibility: public export
GetPathType : Component{_:12903}tsreqBody'->Type->Type
  Get the type of the path.
@ts The types of the path parameters.
@path The path.
@epType The type of the endpoint.

Returns the type of the path.

Visibility: public export