Class JsonApiRelationship

java.lang.Object
org.apache.juneau.bean.jsonapi.JsonApiRelationship

Represents a JSON:API Relationship Object as defined by JSON:API v1.1 § Relationships.

A relationship carries:

  • data - resource linkage. Per spec, this can be null, a single JsonApiResourceIdentifier, or a JSON array of identifiers. Modeled here as Object.
  • links - related URLs. Each value can be either a JSON string URL or a JsonApiLink object; the field-level JsonApiLinkOrStringSwap swap handles the union.
  • meta - free-form meta bag.
See Also: