It's all about the answers!

Ask a question

Python APIs to automate administrator functionalities of RTC tool


Petersingh Anburaj (1112) | asked Mar 31 '15, 9:26 a.m.

We wish to automate the administrative functionalities of RTC tool like create project area, import users, assigning privileges etc..

For achieving this we require Python REST APIs which will help us connect to RTC tool and perform some basic operations.

We tried implementing login module with the help of this link (https://hub.jazz.net/project/dtoczala/Python%20Jazz%20client/overview), and were successful with some modifications in the code.

But we are unable to proceed further because for every single functionality there are multiple sequential API calls which is not feasible for us.

If anyone knows anything in this respect please let me know.

One answer



permanent link
Donald Nong (14.5k614) | answered Apr 01 '15, 1:56 a.m.
Do you "have to" use Python? There are plenty of examples around here implementing OSLC/REST API in Perl, and even cURL. All you need to do is to "translate" the code from Perl (or cURL) to Python. The OSLC/REST URLs would be the same in all cases, and you just need to handle HTTP headers, cookies and POST data, and parse response differently and appropriately in each scripting language.

Comments
Petersingh Anburaj commented Apr 01 '15, 9:00 a.m.

Thanks for the response.
Can you give us a link where we can find the REST API's in Perl or cURL ?
It would be a great help.


Donald Nong commented Apr 02 '15, 5:39 a.m.

Use these terms in Google - "oslc rtc site:jazz.net", "oslc rtc perl site:jazz.net" or "oslc rtc curl site:jazz.net".

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.