Get RRC reviews through OSLC Client Application
I am building a client application to access the reviews in a project area of RRC. In REST-API i use following link to get all the reviews of a particular project area.
i use following headers in REST-Client as well as java application.
Accept: application/rdf+xml
OSLC-Core-Version: 2.0
Content-Type: application/rdf+xml
DoorsRP-Request-Type Value: private
The REST-Client returns me all the reviews however when i pass the same header in the request through java code i get Error 403: forbidden. Follow response body is received.
<html><head><title>Error 403: Forbidden</title></head><body><h1>Error 403: Forbidden</h1><p>CRRRS4142E getInternalRequestHandlerService(context) returned null. This error used to report 'The requested service requires a private header'.<hr><i>Requirements Management/4.0.7</i></p></body></html>
Any ideas what can be the problem?
|
Accepted answer
You can put the private header in the URL - that is, add "private=true" in the URL. So your URL becomes https://clmapp:9443/rm/reviews?private=true&projectURI=_TmFXlVQIEeKzkvPRDuhJlQ
Ahmed Omair selected this answer as the correct answer
Comments
Ahmed Omair
commented Feb 02 '17, 5:10 a.m.
Thank you very much! This worked like magic :) Note that you can use the DNG internal REST API, but there is no support there, and can change over time.
|
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.