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
1. Even I added an HTTP header "Accept: application/json", only the XML format was returned. I believe JSON is not yet supported. The linked document does not mentioned JSON either.
2. I would not call them "attributes" if you cannot see them in the returned HTTP response. Some information may need calculation and you have to do the same.
2. I would not call them "attributes" if you cannot see them in the returned HTTP response. Some information may need calculation and you have to do the same.
Comments
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?
But when I call this URI from browser, I got an XML representaion.
How can we get this call's reponse in xml format?