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

Can I use python for creating RQM API

 Hi 


I am creating API which will create TCR automatically. I have couple of question

1. Can I use Python script?
2. as per  API document I have to use Post method to  generate systemid. Do I to send JaZZ-CSRF-PREVEN? Is it possible from python script? 
3. Is it possible to to assign  TCR to specific TCER? if yes Can you guide me here how? Do I have to send extra header in API call?

I am referring this document 

Thank you advance 

0 votes



One answer

Permanent link

 I am not an ETM API expert, so no specifics. 


In general, it is possible to use Python to develop against HTTP/REST APIs. You use the requests library.

For ETM, there are these public APIs:
  1. OSLC QM
  2. Reportable Rest (which is unlike for all other products a CRUD API and not only a Read api.
If you use PUT or POST against an ETM API it is likely that you have to send a JAZZ-CSRF-PREVENT header with the JSESSION ID as value. You will know you have to, based on an error you get trying.
 
In general, what has best worked for me over the years was to look at data that had the characteristic I wanted and use the API based on that. Stephanes blog is still valid.

0 votes

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

Question asked: Feb 27 '24, 5:04 p.m.

Question was seen: 679 times

Last updated: Feb 28 '24, 2:16 a.m.

Confirmation Cancel Confirm