Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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. 


0 votes


Accepted answer

Permanent link
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

1 vote

Comments

Confirming Don's answer, I was able to use an XHR Poster app to retrieve it from jazz.net in JSON:

 

  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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,947

Question asked: Feb 12 '14, 3:56 p.m.

Question was seen: 5,896 times

Last updated: Feb 18 '14, 11:57 a.m.

Confirmation Cancel Confirm