OSLC query with CQ
3 answers
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
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?
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
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
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