RPE - Publishing RTC Work Items using reportable REST API
Hi,
I believe I have correctly assembled a GET URL for an RTC work item, however, using Talend API tester, I get a "302 Found" but no content.
This is first dabble into publishing from RTC having spent years publishing from DNG and DOORS 9.6.
What am I missing here?
https://[server]/ccm/rpt/repository/workitem?fields=workitem/workItem[id=3980]/(description|summary|severity|state)
Accepted answer
You get a 302 if you are not authenticated against EWM and have "follow redirect" switched off in your HTTP client.
I just ran an unauthenticated request https://elm.example.com:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[id=1]/(id|summary|approvals/(approver/(name)|approvalDescriptor/(id|typeIdentifier|typeName|name|cumulativeStateIdentifier|cumulativeStateName|dueDate|approvals))) against the reportable REST API with Follow Redirect off and see exactly that.
Comments
I did add an "Authentication" to the request, however, if I access the application and log in, then I no longer get the 302 response.
Not sure I understand. You need to be properly authenticated if you want to access a protected resource. the redirects and status values are part of an authentication dance that could be implemented. Different Server setups support different authentications. Basic Auth is the fallback, I believe.Â