servant-hateoas-0.3.3: HATEOAS extension for servant
Safe HaskellSafe-Inferred
LanguageGHC2021

Servant.Hateoas.RelationLink

Synopsis

RelationLink

Type

data RelationLink Source #

Link data-type for hypermedia-links in HATEOAS with potentially templated URIs.

data RelationParam Source #

Parameter data-type for hypermedia-links in HATEOAS.

Constructors

RelationParam 

Fields

Creation

Operations

mkPlaceHolder :: Text -> Text Source #

Create a placeholder for a URI template parameter.

appendPath :: Text -> Text -> Text Source #

Append a path to a URI.

Class

class HasRelationLink endpoint where Source #

Class for creating a RelationLink to an API.

Methods

toRelationLink :: Proxy endpoint -> RelationLink Source #

Instances

Utility

ReflectStdMethod

reflectStdMethod :: ReflectMethod method => Proxy method -> StdMethod Source #

Like reflectMethod but returns a StdMethod.