Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module representing a JSON-API resource object.
Specification: http://jsonapi.org/format/#document-resource-objects
- class HasIdentifier a where
- data Identifier = Identifier {}
- datatype :: Lens' Identifier Text
- ident :: Lens' Identifier Text
- metadata :: Lens' Identifier (Maybe Meta)
Documentation
class HasIdentifier a where Source #
Typeclass indicating how to access an Identifier
for
a given datatype
identifier :: a -> Identifier Source #
HasIdentifier (Resource a) Source # | |
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