Is it possible to search for an RRC artifact via REST API using the artifact ID as a parameter?
Hello,
I am using RRC 4.0.0.1 and I am trying to search for an artifact via REST API based on it's ID. This is because the artifacts are referenced by their UUID (for example https://server.com/rm/resources/_vvjWoMz8EeKAvJ3otSDu6Q) and not by their IDs like in RTC.
I would like to pass the ID, find the corresponding UUID and then access the artifact by constructing the URL. Is this possible? Are there any other ways of achieving this?
Thank you in advance,
Andrew
edit: I can construct a query
that searches a project area for an artifact with ID 35, but it returns an error:https://server.com/rm/views?oslc.query=true&projectURL=https://server.com/jts/process/project-areas/_TIhVZLhvEeKto8qW7nvWBw&oslc.prefix=dcterms=<http://purl.org/dc/terms/>&oslc.select=*&oslc.where=dcterms:identifier=35
<rdf:RDFxmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"xmlns:err="http://jazz.net/xmlns/prod/jazz/foundation/1.0/"><rdf:Description><err:detailedMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">getInternalRequestHandlerService(context) returned null. This error used to report 'The requested service requires a private header'. (More info found at entry [57f572ea2e6010e5] in RRS server log)</err:detailedMessage><err:errorMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Forbidden</err:errorMessage><err:errorStatus rdf:datatype="http://www.w3.org/2001/XMLSchema#long">403</err:errorStatus></rdf:Description></rdf:RDF>
Any ideas?
Accepted answer
Hi,
That query should work, ensure that you are using the proper OSLC Headers. PLS check for smaples at : https://jazz.net/library/article/1197
That query should work, ensure that you are using the proper OSLC Headers. PLS check for smaples at : https://jazz.net/library/article/1197
Comments
showing 5 of 6
show 1 more comments