Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

REST API for baseline in RQM

 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.

0 votes


Accepted answer

Permanent link

 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

0 votes


2 other answers

Permanent link

 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. 

0 votes

Comments

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

 Ajith - 

Request you to go through the following links and this would help you navigate through.
This would help you in building up the URL you are looking for.

0 votes

Comments

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 84

Question asked: Jun 19 '19, 1:28 a.m.

Question was seen: 3,287 times

Last updated: Jul 22 '21, 9:04 a.m.

Confirmation Cancel Confirm