REST: DNG View Query
GET https://localhost:9443/rm/publish/resources?viewURI=filterID&projectURI=projectUUID
Accept: application/xml
Above query returns the xml for corresponding View for filterID, for DNG projects where configuration is not enabled.
For configuration enabled projects, adding any one of the following header returns a 200 response but 0 resources.
Configuration-Context=gcURI
vvc.configuration=gcURI
How to get the query results xml for Configuration enabled projects.
|
One answer
Ian Barnard (2.3k●7●14)
| answered Jul 12 '23, 10:45 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Use a parameter &oslc_config.context=gcURI (suitably url-encoded) added to the URL Comments
Chidambaram L
commented Jul 19 '23, 7:15 a.m.
Accept: application/xml
reponse
<?xml version="1.0" encoding="UTF-8"?>
<ds:dataSource xmlns:rrm="http://www.ibm.com/xmlns/rrm/1.0/"
...
xmlns:xhtml="http://www.w3.org/1999/xhtml" appId="RRC" rrm:totalCount="0" vMajor="70" vMinor="10"/>
Ian Barnard
commented Jul 19 '23, 7:29 a.m.
| edited Jul 19 '23, 8:19 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I can't tell from your comment if what you show is good/expected, or bad/wrong, which makes it difficult to respond.
Is the view defined in the configuration you've specified?
Chidambaram L
commented Jul 24 '23, 7:01 a.m.
Yes. I am extracting all the UUID after loading the module in the browser.
Ian Barnard
commented Jul 24 '23, 7:38 a.m.
| edited Jul 24 '23, 9:44 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Your style of Reportable REST URL works for me using 7.0.2 iFix023 - and I've no reason to suppose it shouldn't work on any 7.x server.
Do you get results removing the viewURI= parameter (bearing in mind the first parameter must always start with ?)
I am using 702 iFix017.
Following works:
https://abc.com/rm/publish/resources?moduleURI=MD_j8EX5EjREeaDJdnMIXf2FA
&oslc_config.context=https://abc.com/rm/cm/stream/_DlNI8KzHEeqHjYStCpEzgQ
It prints the module representation. Prints xml even without oslc_config.context parameter, as that is the default Stream.
So you get results without the viewURI, but no results with it. That's what happens for me when the viewURI isn't defined in the configuration being used. There may be other reasons like for a non-shared view the view not being defined in the module specified.
showing 5 of 6
show 1 more comments
|
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.