RelationshipObject
Identifies a relationship
-
Allows a client to link together all of the included resource objects
See more -
A links object containing the following members: self: a link for the relationship itself (a “relationship link”) related: a related resource link
-
Allows a client to link together all of the included resource objects
-
Non-standard meta-information about the relationship
-
Constructor
Throws
DocumentError.emptyRelationshipObject
: If neither links or data or meta are setDocumentError.missingKey
: Ifid
and/ortype
attribute are missing in indentifier(s)
-
Constructor
- self: a link for the relationship itself (a “relationship link”)
- related: a related resource link
Throws
DocumentError.emptyRelationshipObject
if neither links or data or meta are set -
Serialize to JSON format
-
Equality is based on
data