It's all about the answers!

Ask a question

RTC Catalog JSON via REST

Bryan Perino (546) | asked Feb 12 '14, 3:56 p.m.

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

permanent link
Don Yang (7.7k21110139) | answered Feb 12 '14, 6:31 p.m.
If I use OSLC CM REST API, I have no problem getting catalog Json representation:

I tried with v4.0.4 and set header as

Can you please put more details here on how you tried?
Bryan Perino selected this answer as the correct answer

Millard Ellingsworth commented Feb 12 '14, 11:58 p.m.

Confirming Don's answer, I was able to use an XHR Poster app to retrieve it from 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

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.