REST: DNG View Query
![](http://jazz.net/_images/myphoto/65669772c569fa5157b25711fa022ec0.jpg)
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
![](http://jazz.net/_images/myphoto/65669772c569fa5157b25711fa022ec0.jpg)
Use a parameter &oslc_config.context=gcURI (suitably url-encoded) added to the URL
Comments
![](http://jazz.net/_images/myphoto/65669772c569fa5157b25711fa022ec0.jpg)
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"/>
![](http://jazz.net/_images/myphoto/dade1d95817eaae9f466f2540600c543.jpg)
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?
![](http://jazz.net/_images/myphoto/65669772c569fa5157b25711fa022ec0.jpg)
Yes. I am extracting all the UUID after loading the module in the browser.
![](http://jazz.net/_images/myphoto/dade1d95817eaae9f466f2540600c543.jpg)
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 ?)
![](http://jazz.net/_images/myphoto/65669772c569fa5157b25711fa022ec0.jpg)
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.
![](http://jazz.net/_images/myphoto/dade1d95817eaae9f466f2540600c543.jpg)
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