DNG : Given a Global Baseline, how to fetch all the DNG modules programmatically ?
4 answers
You can find the public APIs here: https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding this includes the DNG APIs.
We did some work in the past here the article series and source code that works on configurations: https://jazz.net/library/article/92596 also this blog here https://rsjazz.wordpress.com/2019/03/07/type-system-manager-part-2/
OSLC Query is one way - query for modules using oslc.where=rdf:type=oslc_rm:RequirementCollection (where the bold part has to be url-encoded because it's a parameter value) - see https://docs.oasis-open-projects.org/oslc-op/query/v3.0/oslc-query.html - this article gives a brief overview of the OSLC APIs https://jazz.net/library/article/1197
Once you've got the query results you can use then module URLs to get more details with a further OSLC Query, for example to get all the used artifacts, or use the OSLC RM API to GET the details of the module, or the Module Structure API to retrieve the hierarchy in the module, see https://jazz.net/wiki/bin/view/Main/DNGModuleAPI
Or the Reportable REST API may be able to return all modules in a GC - see https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI
Comments
1 vote