It's all about the answers!

Ask a question

REST: DNG View Query


Chidambaram L (23424390) | asked Jul 11 '23, 12:17 p.m.
edited Jul 11 '23, 12:20 p.m.

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



permanent link
Ian Barnard (2.3k714) | 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

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 ?)

Chidambaram L commented Jul 25 '23, 12:31 p.m. | edited Jul 25 '23, 12:31 p.m.
I am using 702 iFix017.

Following works:
https://abc.com/rm/publish/resources?moduleURI=MD_j8EX5EjREeaDJdnMIXf2FA

It prints the module representation. Prints xml even without oslc_config.context parameter, as that is the default Stream.

Ian Barnard commented Jul 26 '23, 4:32 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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


Register or to post 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.