Project

General

Profile

Actions

Feature #1691

closed

API: Selecting relations to be returned

Added by Andreas Olschnögger over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Start date:
2022-04-11
Estimated time:

Description

Often not all relations that are returned from the api are needed. When loading many entities this leads to an extreme overhead and also to longer loading times. Therefore it would be great if one could specify which relations one wants to get back.
For example if I want to return all Actors with


https://connec.openatlas.eu/api/0.3/query/?view_classes=actor&limit=100&show=relations

and I only need the relation Types "crm:P11i participated in" and "crm:OA7 has relationship to" a solution like


https://connec.openatlas.eu/api/0.3/query/?view_classes=actor&limit=100&show=relations?relationType=crm:P11i?relationType=crm:0A7

would be a good solution.

Note that this is not a filter option for entities but only limits how much data is returned.

Actions

Also available in: Atom PDF