Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



One answer

Permanent link

Check the API page DNGReportableRestAPI < Main < TWiki (jazz.net) for 'filter by module' to see how to do this

0 votes

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.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937

Question asked: Apr 15, 7:11 a.m.

Question was seen: 542 times

Last updated: Apr 15, 10:20 a.m.

Confirmation Cancel Confirm