Fetch the modules of all the component of a project area DNG
Accepted answer
Hi Minakshi
Using OSLC Query:
For modules in a single component you would use the local configuration and an OSLC query like oslc.where=rdm_types:ArtifactFormat=jazz_rm:Module or whatever way you want to locate the modules you're interested in.
Assuming there are multiple components in a project which contribute to a GC configuration, you can use that GC configuration URL as the configuration and the same OSLC query as for a single component will return all modules in components in the project you're querying where those components contribute to the GC configuration. BUT this won't/can't give you modules in components that don't contribute to the GC. And this won't/can't give you modules in other projects.
For components which don't contribute to a common GC you'll have to find each component and query it as for a single component.
If you want all modules across more than one project you'll have to query each project/component.
Using Reportable REST API https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI
The DNG Reportable REST API gives you another way to retrieve information from DNG.
A query like:
* https://SERVER:PORT/rm/publish/modules/*?projectURI=_NDNJ0NcLEeqXpuBdEolY7w&oslc_config.context=https://SERVER:PORT/rm/cm/stream/_XYZ where you replace the projectURI value with your project's UUID and the configuration URI with your configuration
will return XML about all modules in that configuration - you'll have to post-process to filter out modules you aren't interested in.
Once nice thing about reportable REST is you can paste the URL into a logged-in browser and see the results :-)
HTH
Ian
Comments
aditi roy
Aug 19 '24, 2:55 a.m.Can you please tell us how to fetch module of a single component, as we have a same use case