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

Safe HaskellNone
LanguageHaskell2010

Network.JSONApi.Identifier

Description

Module representing a JSON-API resource object.

Specification: http://jsonapi.org/format/#document-resource-objects

Synopsis

Documentation

class HasIdentifier a where Source #

Typeclass indicating how to access an Identifier for a given datatype

Methods

identifier :: a -> Identifier Source #

Instances
HasIdentifier (Resource a) Source # 
Instance details

Defined in Network.JSONApi.Resource

data Identifier Source #

Identifiers are used to encapsulate the minimum amount of information to uniquely identify a resource.

This object will be found at multiple levels of the JSON-API structure

Specification: http://jsonapi.org/format/#document-resource-identifier-objects

Constructors

Identifier