How to get RTC Project Area information through REST API?
![]()
I can query RTC to get all project areas for a particular user via the Draft Team Process Rest API (https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi#GET_project_areas_collection) using the "has member" query parameter. This returns data in XML format. I would like to know about the following two things:
1. Is there a way get all project areas for a particular user (a 'has member' equivalent) in JSON format?
2. There are other attributes about a project area, like project duration, project status which can be seen in the web (they may be custom widgets). Is there a way to get this information? Is there any REST API for this?
Thank you very much.
|
2 answers
![]()
I added an HTTP header "Accept: application/text" to my https://server:9443/admin/projects Rest call but I get JSON represenation of the result.
But when I call this URI from browser, I got an XML representaion. How can we get this call's reponse in xml format? Comments Are you sure you got an XML response in the browser? I always get a JSON response not matter what clients I use. And it is expected according to the specification.
Get the list of lifecycle projects in the repository, as JSON text. Sorry Donald I mis-wrote my message.
Arne posted a nice short answer that showed how to parse json easily |