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

OSLC query with CQ

Hello all,
i am trying to query records using OSLC. I am able to do that in C#.
When i query using the url's the return type is always application/atom+xm

how can change this to JSON or XML?

Cheers,
Karthik

0 votes



3 answers

Permanent link
Hello all,
i am trying to query records using OSLC. I am able to do that in C#.
When i query using the url's the return type is always
application/atom+xm

In general, you can you the HTTP 'Accept' header to indicate the format
that you are interested in:

Accept: application/json

--
Regards,
Patrick
RTC Work Item Component Lead

0 votes


Permanent link
Thanks. That seems to work.

Also if i set header OSLC-CORE-Version:2.0 in header, how can find out that the return is 2.0 and not 1.0?

Hello all,
i am trying to query records using OSLC. I am able to do that in C#.
When i query using the url's the return type is always
application/atom+xm

In general, you can you the HTTP 'Accept' header to indicate the format
that you are interested in:

Accept: application/json

--
Regards,
Patrick
RTC Work Item Component Lead

0 votes


Permanent link
Thanks. That seems to work.

Also if i set header OSLC-CORE-Version:2.0 in header, how can find out
that the return is 2.0 and not 1.0?

If you get a 2.0 response, there should also be an OSLC-Core-Version:
2.0 header in the HTTP response headers. If it is not there, then it is
a 1.0 response.

--
Regards,
Patrick
RTC Work Item Component Lead

0 votes

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,944

Question asked: Dec 08 '10, 4:11 a.m.

Question was seen: 5,275 times

Last updated: Dec 08 '10, 4:11 a.m.

Confirmation Cancel Confirm