logo

Entity Relation Object

An Entity Relation Object contains links to the related Entity Resources for an entity relation. The following properties exist:

NameTypeDescription
parentsArrayIn case of a relation definition with multiple parents, contains an array of Link objects referring to the related parent Entity Resources.
parentLinkIn case of a relation definition with a single parent, contains a Link object referring to the related parent Entity Resource.
childrenArrayIn case of a relation definition with multiple children, contains an array of Link objects referencing the related child Entity Resources.
childLinkIn case of a relation definition with a single child, contains a Link object referring to the related child Entity Resource.
selfLinkContains a link to the resource containing this object.

Example

{
    "children":[
        {
            "href":"http://<hostname>/entities/2"
        },
        {
            "href":"http://<hostname>/entities/3"
        }
    ],
    "self":{
        "href":"http://<hostname>/entities/1/relations/R1"
    }
}

Can we improve this article ? Provide feedback