It's all about the answers!

Ask a question

Query regarding RQM Rest API (History Fetch) response


ajay hirapara (115) | asked Jul 06 '17, 3:45 a.m.
edited Jul 06 '17, 3:47 a.m.

Hi,
 
We wanted to fetch the changes/history of the RQM Test Case artifact.

We are using following History Query for this purpose, we are referring this query format from  API Document document.

History API Query:

https://<Host>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/history?resourceId=resources/<project alias>/testcase/urn:com.ibm.rqm:testcase:14

Header:
 we have tried different Accept and content type header. we have tried following values  both for content type and accept header
application/xml;
application/json;
application/atom+xml;
etc.

API Response:
Response Link

This query seems to be working and giving us the all changes made to the given Test Case
but we have concern here is regarding the above API response.

We are getting response in XHTML format as referenced above.
Are we missing any thing in this query or any request header?

is there any way that we can get response of this history query in XML or Json form?

Kindly help us to address our query to fetch result in XML or Json format.

Thanks & Regards,
Ajay





One answer



permanent link
Subhajit Bhuiya (6222) | answered Jul 07 '17, 4:33 a.m.
JAZZ DEVELOPER

 It gives response in xml. Make sure that you have done logged into RQM before calling the api. Also try with poster and rest client. Please provide user-agent in the header

Your answer


Register or to post 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.