json-api-lib-0.1.3.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 
Instances
Eq Identifier Source # 
Instance details

Defined in Network.JSONApi.Identifier

Show Identifier Source # 
Instance details

Defined in Network.JSONApi.Identifier

Generic Identifier Source # 
Instance details

Defined in Network.JSONApi.Identifier

Associated Types

type Rep Identifier :: Type -> Type #

ToJSON Identifier Source # 
Instance details

Defined in Network.JSONApi.Identifier

FromJSON Identifier Source # 
Instance details

Defined in Network.JSONApi.Identifier

NFData Identifier Source # 
Instance details

Defined in Network.JSONApi.Identifier

Methods

rnf :: Identifier -> () #

type Rep Identifier Source # 
Instance details

Defined in Network.JSONApi.Identifier

type Rep Identifier = D1 (MetaData "Identifier" "Network.JSONApi.Identifier" "json-api-lib-0.1.3.0-6YcBiX2ASZQ3iU3wpNCPjK" False) (C1 (MetaCons "Identifier" PrefixI True) (S1 (MetaSel (Just "_ident") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "_datatype") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "_metadata") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Meta)))))