API to Get the list of views in the DNG.

3 answers



Comments

This API - https://server:port/rm/publish/[artifact_format]?viewURI=id1&projectURI=id2

I'm guessing the returned artifacts aren't filtered when the view you specify isn't a shared view.

DOORS Next has an OSLC Query capability for views, in the component services.xml. This provides results for shared views.
Comments

Do u have that sample OSLC Query by any chance?

An example view query URL is: https://jazz.ibm.com:9443/rm/views_oslc/query?componentURI=https%3A//jazz.ibm.com%3A9443/rm/cm/component/_WRg7E3aKEfCeB7Wej8YFgg&oslc.select=%2A&oslc.paging=false&vvc.configuration=https%3A//jazz.ibm.com%3A9443/rm/cm/stream/_WR0dEHaKEfCeB7Wej8YFgg
There's no point specifying oslc.where, and use oslc.select=*, and specify a local configuration.
You should discover the OSLC Query capability for resourceType http://jazz.net/ns/rm/dng/view#View in your services.xml - there's an example of discovery here, which I note doesn't show the view query capability https://jazz.net/forum/questions/266334/dng-oslcfetch-components-from-project-area/266667
it only returns shared views.
The view query capability will have a dcterms:title View Definition Query Capability for resource type <oslc:resourceType rdf:resource="http://jazz.net/ns/rm/dng/view#View"/> - it's the resourceType you should use to identify the query capability.
HTH
Ian