DNG Query to read all attributes of all the child resources in the module
When Module has 10 child resources, I need to fire 21 REST Queries to read all the attributes of the child resources.
GET: https://hostname/rm/publish/resources?resourceURI=moduleUUID&oslc_config.context= streamUUID
For each resource returned in the previous call, get the attributes from:
GET: https://hostname/rm/publish/resources?resourceURI=resourceUUID&oslc_config.context= streamUUID
For each resource returned in the first call, get the Primary Text from:
OSLC GET: https://hostname/rm/resources/resourceUUID?oslc_config.context= streamUUID
Can I do this with one query, which will return one big xml with all attributes & primary text of all child resources.
One answer
Check the API page DNGReportableRestAPI < Main < TWiki (jazz.net) for 'filter by module' to see how to do this
Comments
'filter by module' returns all child resources of the module & all attributes of the Child resources, except Primary Text.
Is it possible to get Primary Text into this response.
Hadn't noticed that - rarely have Name<>Primary Text. Don't think it's possible to include. Another method to get bulk data is to use OSLC Query.