It's all about the answers!

Ask a question

SNAPSHOT request for RQM REST API


Ajith O M (46433) | asked Jan 30 '19, 8:42 a.m.

 Dear team,

 I tried creating snapshot using  REST API and its working fine and im able to create snapshot through API.  But how do i implement Non-standard HTTP method requiring a HTTP client that support the HTTP SNAPSHOT method. How do I implement it in java. what is the http client that supports SNAPSHOT http method
url used: serveraddress.com/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TestProject/testcase/urn:com.ibm.rqm:testcase:170

Please help me.

Thanks
Ajith

Accepted answer


permanent link
Subramanya Prasad Pilar (4.6k16) | answered Feb 02 '19, 8:55 p.m.

You can try
https://<server>:<port>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources//TestProject/testcase/urn:com.ibm.rqm:testcase:170?snapshot

If you are using Postman, you will find "PROPFIND", using which you will get snapshot details.
https://jazz.net/wiki/bin/view/Main/RqmApi#Read_a_List_of_Snapshots

Ajith O M selected this answer as the correct answer

Comments
Ajith O M commented Feb 04 '19, 12:03 a.m.

Thanks Subramanya for your response.

I know that the above URL and PROPFIND method can give me details of Snapshot or to Get the snapshots of test case. But what i really want is how to create snapshot or rather  how to implement creating SNAPSHOT. How to create Custom HTTP method SNAPSHOT with HTTP client. I tried SNAPSHOT HTTP method and API URL in Postman and its working absolutely fine. But I need the same to be implemented in java code. How do i do that ? Is there any jar file that could do this for me ? I have Apache webdav for propfind method,but unfortunately I couldn't find any jar or any implementation details for SNAPSHOT HTTP method. Please help !


Ajith O M commented Feb 04 '19, 1:06 a.m.

Just adding along with the comment.

Request Body : 
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
        <ns3:title>TC3 Snapshot 1</ns3:title> 
        <ns3:description/> 
    </ns2:snapshot>

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.