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