Batch REST API GET calls
Hi,
I am querying for artefacts information by REST API GET calls for the uri's stated in the bindings of a module, which works fine.
Though, for modules with a large amount of bindings, the time spent accessing the artefacts is (to) large due to the overhead for each GET call.
Is it possible to batch a set of uri's in one REST API GET call?
Kind Regards
Magnus
Accepted answer
It would be helpful to know which API you refer to. Here the list of documented APIs https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding
I do not know the answer for the reportable REST API, but for the OSLC API, I believe the answer is no.
Comments
David Honey
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Dec 12 '22, 4:46 a.m.Usually the only benefit to using a multi-part request (if supported) is that it saves the latency of the round trip from multiple requests. The server still has to do the same amount of work. In general, I'm not aware of such multi-part request support in ELM REST APIs. If network latency is an issue, you can always perform multiple requests concurrently. However, be careful to limit the maximum number of concurrent requests because it can result in the server's connection pool being exhausted, to the detriment of other users.
In some cases, an OSLC query or a reportable REST call might be able to query for and return information about multiple objects. You'd have to look at the API documentation to see whether that was possible for your specific use case.