How to get the list of modules within a project area (of RDNG V6) using API ?
I am able to pull the list of modules within a project area using API in RDNG V5 using below query:
https://itec-rrc-uat.fmr.com/rm/publish/modules?resourceURI=_6t8ccDGUEea7q9aDYVKPMw
But when I tried this query in RDNG V6 it does not returns any information.
And then I tried by adding configuration management to it (see below query), but no luck, still got no information in RDNG V6.
Can you please help me with the correct query format and further steps to do to get the list of modules from RDNG V6 ?
Thanks for your help!!
One answer
Hi Krishna,
How about this? I can see the module list in my DNG 6.0.2 (without Global Configuration) using projectURI.
https://itec-rrc-uat.fmr.com/rm/publish/modules?projectURI=_6t8ccDGUEea7q9aDYVKPMw
If you enable GC for this project, add oslc_config.context to specify the configuration. See
https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI
Comments
Thanks for the response. I have tried with projectURI also, but it did not pull proper xml response.
https://itec-rrc-uat.fmr.com/rm/publish/modules?projectURI=_6t8ccDGUEea7q9aDYVKPMw
Can you please provide more details on "GC".
I have tried with below two API formats as well but it just returned zero count of modules. https://itec-rrc-uat.fmr.com/rm/publish/modules?projectURI=_6t8ccDGUEea7q9aDYVKPMw&vvc.configuration=https://itec-rrc-uat.fmr.com/rm/cm/stream/_FZ2QUOdaEee7yKUBimX0Fw
I can see 4 modules under my project using the URL as explained before. I think there is something wrong with other things such as
- Double check projectURI (If it is incorrect, you get 400 error.)
- Try with other web browsers, preferably REST Client (Firefox add-on)
- Try by jazzadmins privilege
GC is Global Configuration. It should be explicitly enabled by administrator, so ask your admin. If there is only a local configuration, the URL with projectURI only should be fine.
Query in RDNG V6 returns xml response as below, but the same API returned total of 5 modules under my project in RDNG V5.
<ds:dataSource vMinor="03" vMajor="60" rrm:totalCount="0" rel="next" href="https://itec-rrc-uat.fmr.com/rm/publish/modules?scoped=true&size=100&projectURI=_6t8ccDGUEea7q9aDYVKPMw&token=_waeGgPxZEee7bY3_8igr3w&page=1"