json-api-0.1.1.2: Utilities for generating JSON-API payloads

Safe HaskellNone
LanguageHaskell2010

Network.JSONApi.Link

Description

Module representing a JSON-API link object.

Specification: http://jsonapi.org/format/#document-links

Synopsis

Documentation

data Links Source #

Type representing a JSON-API link object.

Links are an abstraction around an underlying Map consisting of relevance identifiers as keys and URIs as values.

Example JSON: "links": { "self": "http://example.com/posts/1" }

Specification: http://jsonapi.org/format/#document-links

type Rel = Text Source #

type Href = Text Source #

mkLinks :: [(Rel, URL)] -> Links Source #

Constructor function for building Links