1. REST APIs

Entity relation

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

Name

Type

Description

parents

Array

In case of a relation definition with multiple parents, contains an array of Link objects referring to the related parent Entity Resources.

parent

Link

In case of a relation definition with a single parent, contains a Link object referring to the related parent Entity Resource.

children

Array

In case of a relation definition with multiple children, contains an array of Link objects referencing the related child Entity Resources.

child

Link

In case of a relation definition with a single child, contains a Link object referring to the related child Entity Resource.

self

Link

Contains 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"
  }
}
If you have suggestions for improving this article, let us know!