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
|
One answer
Ralph Schoon (63.6k●3●36●46)
| answered Feb 28, 2:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER 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 authentication see https://rsjazz.wordpress.com/2021/10/15/elm-authentication/ .
For the APIs available see https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding.
For ETM, there are these public APIs:
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.
|
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.