Hello, I am trying REST service and have question.
I define two class "Server","Feature" and a domain "Relation". I create one links "Server"->"Feature".
Next I retrieved the link via REST /cmdbuild/services/rest/v1/domains/{Id}/relations .
I expect only one result but API returns two results.
{"data": [
{ "_destinationDescription":"Test001",
"_sourceId":46,
"_type":"Relation",
"_destinationId":38,
"_id":52,
"_destinationType":"Server",
"_sourceType":"Feature",
"_sourceDescription":"3462512373502032751"},
{ "_destinationDescription":"3462512373502032751",
"_sourceId":38,
"_type":"Relation",
"_destinationId":46,
"_id":52,
"_destinationType":"Feature",
"_sourceType":"Server",
"_sourceDescription":"Test001"}
],
"meta":{"total":2}
}
It seems API generates id 46->38 and 38->46 from single actual link ID 52.
Is this behavior is intended results?
Thank you for your help.
It's an error, thank you for your submission. We will fix it as soon as possible.
Best regards.
-- CMDBuild Team
Previously Tomohisa wrote:
Hello, I am trying REST service and have question.
I define two class "Server","Feature" and a domain "Relation". I create one links "Server"->"Feature".
Next I retrieved the link via REST /cmdbuild/services/rest/v1/domains/{Id}/relations .
I expect only one result but API returns two results.
{"data": [
{ "_destinationDescription":"Test001",
"_sourceId":46,
"_type":"Relation",
"_destinationId":38,
"_id":52,
"_destinationType":"Server",
"_sourceType":"Feature",
"_sourceDescription":"3462512373502032751"},
{ "_destinationDescription":"3462512373502032751",
"_sourceId":38,
"_type":"Relation",
"_destinationId":46,
"_id":52,
"_destinationType":"Feature",
"_sourceType":"Server",
"_sourceDescription":"Test001"}
],
"meta":{"total":2}
}
It seems API generates id 46->38 and 38->46 from single actual link ID 52.
Is this behavior is intended results?
Thank you for your help.