How to filter DNG RRC API
Accepted answer
One other answer
You'll have to provide oslc.prefix to define prefixes such as those used in the above example rdm_types and jazz_rm.
It's also important to url encode all the query parameter values
An example of an encoded full query URL for modules with the title returned is:
HTH
Ian
|
Comments
Not sure about your error code without full details of the GET URL, headers, etc.
That URL isn't encoded correctly. It's ONLY the parameter values that have to be URL encoded, and you have to merge the parameters you want to use with what are already there, i.e. i.e. oslc.query=true and projectURL=... - and ONLY the first parameter is preceded by ? and the following ones are all preceded by & - NOTE This is all standard http needs, nothing to do with ELM.
?oslc.query=true
&projectURL=https://hostport:9443/rm/process/project-areas/_0V8dsF0rEeqOLb2pbQsvTw
&oslc.prefix=rdm_types=<http://www.ibm.com/xmlns/rdm/types/>,dcterms=<http://purl.org/dc/terms/>,rm_nav=<http://jazz.net/ns/rm/navigation#>
&oslc.where=rdm_types:ArtifactFormat=<http://jazz.net/ns/rm#Module>
&oslc.select=dcterms:identifier,rm_nav:parent
&oslc.paging=true
&oslc.pageSize=200
&oslc_config.context=https://hostport:9443/rm/cm/stream/_iWT5Zo2LEe2vlaLwZDaerQ
https://rb-ubk-clm-04.de.xyz.com:9443/rm/views
?oslc.query=true
&projectURL=https://rb-ubk-clm-04.de.xyz.com:9443/rm/process/project-areas/_0V8dsF0rEeqOLb2pbQsvTw
&oslc.prefix=rdm_types%3D%3Chttp%3A%2F%2Fwww.ibm.com%2Fxmlns%2Frdm%2Ftypes%2F%3E%2Cdcterms%3D%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%2Crm_nav%3D%3Chttp%3A%2F%2Fjazz.net%2Fns%2Frm%2Fnavigation%23%3E
&oslc.where=rdm_types%3AArtifactFormat%3D%3Chttp%3A%2F%2Fjazz.net%2Fns%2Frm%23Module%3E
&oslc.select=dcterms%3Aidentifier%2Crm_nav%3Aparent
&oslc.paging=true
&oslc.pageSize=200
Are you concatenating all the parameters onto the basic URL, i.e. with no line-breaks or space characters? I just used that way of splitting onto lines to make it easier to see the parameters; when you POST it needs to be one long string
<err:errorMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Bad Request</err:errorMessage>
<err:errorStatus rdf:datatype="http://www.w3.org/2001/XMLSchema#long">400</err:errorStatus>
com.ibm.oslc.query.parser.where.ParseException: Encountered "" at line 1, column 26.
 Was expecting one of:
</err:detailedMessage>
com.ibm.oslc.query.parser.where.ParseException: Encountered "" at line 1, column 26.
 Was expecting one of:
</err:detailedMessage>
Hi Rajat I can't see anything wrong with your query#3 that doesn't work, so I can't explain this, but that style of query works for me.