What is XML parameter for OSLC queries?
The following return HTML by default. How do I get them to return XML?
List all work item types for a project:
https://SERVER:PORT/jazz/oslc/types/PROJECTID/
List all states for a work item type:
https://SERVER:PORT/jazz/oslc/workflows/PROJECTID/states/WORKFLOWID/
|
2 answers
Try adding this Accept:application/xml in heder if you are using a REST client .
See http://open-services.net/bin/view/Main/CmRestApiV1?sortcol=table;up=#Media_Types_Used
Edit: What is the content of the html? is it about login? then you might need to login
Comments
Mike Shkolnik
commented May 14 '14, 1:32 p.m.
https://SERVER:PORT/jazz/oslc/types/PROJECTID/?Accept:application/xml
|
Hi, Mike
In my test with RTC 4.0.4, I simply run via Firefox, it will still return XML instead of HTML. What version of RTC do you use and what browser did you try? I remember that I did see the same issue before in Poster when login is not done properly(somehow I have to login to the server via browser first and then run the same commands in Posters. The headers can be set to Accept=application/xml OSLC-Core-Version=2.0 in Poster (or other REST Client) to GET the XML response. Comments
Mike Shkolnik
commented May 14 '14, 1:29 p.m.
I need it in IE, which is defaulting to HTML. I am looking for a "?" parameter to add to the above URLs.
|
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.