How to GET the RelationTypes using REST API.
As for communities I performed GET operation on "....../ram/oslc/communities", and getting the result
so by the using same idea I am performing a GET operation on "....../ram/oslc/relationshipTypes", but getting no result.
Is there any other way to get the desired result.
2 answers
Comments
Hi Sheehan,
Thanks for the comment, it works, but we need to get the result in xml format.
The headers I am using are: 1. "Authorization: Basic q2hhdHVydkE...."
2. "Accept: application/xml"
I also tried "Accept: application/rdf+xml"
but the format(I think it's a JSON format) I am getting is not the desired one.....
Is there anything I am missing here?
Please comment....
As Sheehan said, the internal form only produces JSON. It is used internally by RAM for the browser support and the browser handles JSON faster than XML. Since it wasn't meant to be an API there wasn't any effort to produce an XML format.
That is what Gili's enhancement is for, to produce the different formats through the more formal REST calls.