How to GET the RelationTypes using REST API.
In my application I need to get the available relation types to relate an asset to the already existing one in RAM using relations like Parent, Dependent, ...etc.
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
Mostly, these are internal APIs (on the <server>/ram/internal path vs. the oslc one). There is no service to find all the relationships in the repository at this time. I opened Need a Rest API to list existing relationshipType in the repository (79692)
|
It's not public API, but you can get a JSON representation of the relationships from
http://<server>/ram/internal/service/RelationshipService.getRelationshipTypes
Comments
Ashutosh Chaturvedi
commented Feb 01 '13, 1:17 a.m.
Hi Sheehan,
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.
|
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.