Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



One answer

Permanent link

Use a parameter &oslc_config.context=gcURI (suitably url-encoded) added to the URL

0 votes

Comments

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?

Yes. I am extracting all the UUID after loading the module in the browser.

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

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

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,954

Question asked: Jul 11 '23, 12:17 p.m.

Question was seen: 829 times

Last updated: Jul 26 '23, 4:32 a.m.

Confirmation Cancel Confirm