It's all about the answers!

Ask a question

REST API for baseline in RQM


Ajith O M (46734) | asked Jun 19 '19, 1:28 a.m.

 Dear Team,

In this page(https://jazz.net/wiki/bin/view/Main/RqmApi), it is been mentioned that
"As of Rational Quality Manager 6.0.3, the Baseline resource type is a supported resource type in the Reportable REST API.    This means that clients can create a baseline, get a feed of baselines, and get the details of a particular baseline.    Note, requires Configuration Management (CM) to be enabled for the project area."
I would like to have the REST APIs for the same. Please help me by giving the API urls and the headers to give to get proper response.

Accepted answer


permanent link
Ajith O M (46734) | answered Jun 25 '19, 5:26 a.m.
edited Jun 25 '19, 5:33 a.m.

 Thanks Murali and who has helped.

 I got the answer myself after trying so much:

1.Create Baseline with API 
    1.1. API : https://hostname/qm/localVersioning/configurations/baselines 
             Request Body : 
               { 
              "name": "Test baseline", 
             "description": "Testing", 
              "configurationId": "_yzHtL5ceEmbPnRT_G_Q" 
             } 

           ConfigurationId is the stream UUID which we get from the artifact URL or using anyother way possible.
2. API to fetch test artifacts from a baseline :
                                  https://hostname/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TestProject/testplan/urn:com.ibm.rqm:testplan:67?                         vvc.configuration=https://hostname/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TestProject/ baseline/_b_0VoKvEemU8SCp_Uorg

Ralph Schoon selected this answer as the correct answer

2 other answers



permanent link
Muralidhar Rajagopal (10114) | answered Jun 19 '19, 10:19 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

 Hi Ajith - to get the headers refer to the following section - 



If you have any additional requirements from training perspective - Please contact IBM Services and we shall do the needful. 


Comments
Ajith O M commented Jun 19 '19, 11:00 a.m. | edited Jun 19 '19, 11:10 a.m.

Thanks for the response.

I have gone through all of it and tried few cases,but I was not getting proper response. Im able to create baseline and stream from UI. 
I would like to know the REST API URL to create baseline in RQM and the request headers/body required for hitting the API URL and getting proper response


permanent link
Muralidhar Rajagopal (10114) | answered Jun 19 '19, 11:50 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Comments
Ajith O M commented Jun 19 '19, 1:22 p.m.

Thanks for , thanks for response.

 I have gone through all of this and I have been working with other REST APIs related to Rqm. Other APIs like post methods to update attribute in test artifact, creating snapshot,fetching test artifact details and all these works fine and its giving me proper response. 
Only doubt and inputs i need is related to baseline. Creating a baseline through REST API with proper headers/body. Please help me on this by providing the REST API for creating baseline.

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.