RTC Catalog JSON via REST
Hello,
I am trying to access the Service Providers Document on my RTC server via REST and get a JSON representation instead of an XML representation. I was able to get the root services doc as a JSON document by setting the Accept header to application/json but the same does not seem to be working for the Services Catalog.
|
Accepted answer
If I use OSLC CM REST API, I have no problem getting catalog Json representation:
https://localhost:9443/ccm/oslc/workitems/catalog I tried with v4.0.4 and set header as accept=application/json OSLC-Core-Version=2.0 Can you please put more details here on how you tried? Bryan Perino selected this answer as the correct answer
Comments Confirming Don's answer, I was able to use an XHR Poster app to retrieve it from jazz.net in JSON:
Bryan Perino
commented Feb 18 '14, 11:57 a.m.
It seems that you need to have the version header for it to give you JSON. If you don't include it, it will always give you back XML. |
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.