RDNG Publish API and unrelaiable behaviour when accessing modules
When using RDNG Publish API I figured out really weird behaviour when I am accessing modules in a specific project. For some projects all modules are returned and for some only small subset.
<ds:dataSource appId="RRC" rrm:totalCount="4" vMajor="60" vMinor="02">
<ds:dataSource appId="RRC" href="https://server2:9443/rm/publish/modules?scoped=true&size=100&projectURI=_cnAsUCsgEeWKUsdTFNz7Cg&token=_H68S8ANvEeexwe7ftoMOEw&page=1" rel="next" rrm:totalCount="3" vMajor="60" vMinor="02">
Accepted answer
Hi,
Both examples are working as expected, with example 2 TBD by consuming all the pages. The behavior is the following:
- totalCount = no of artifacts (i.e. ds:artifact) present in the server response; if the server response is paged, then totalCount = no of artifacts present in the currently returned response page
The response is automatically paged by the server when no size is specified. Even if a size parameter is specified, it is up to the server to page. This follows the REST Reporting Services API specification from https://open-services.net/pub/Main/ReportingHome/Reportable_Rest_Services_Interfaces-OSLC_Submission.pdf.
Here is the extracted pertinent information:
In your case, complete response total count += rrm:totalCount(each page)
Comments
Donald Nong
Mar 08 '17, 11:34 p.m.Bartosz Chrabski
Mar 09 '17, 3:44 a.m.Rosa Naranjo
FORUM MODERATOR / JAZZ DEVELOPER Mar 12 '18, 3:56 p.m.Bartosz Chrabski
Mar 12 '18, 5:02 p.m.Rosa Naranjo
FORUM MODERATOR / JAZZ DEVELOPER Mar 12 '18, 5:29 p.m.Bartosz Chrabski
Mar 12 '18, 5:40 p.m.