CMDBuild Forum

REST API: get a list of relations with attributes

Hello. We have a problem with getting of the relations' attributes.

1. As it is said in a manual, we can get all relations by:

GET "domains/[DomainName]/relations"

But the result doesn't include relations' attributes.

 

2. Also we can get detailed information about a relation by:

GET "domains/[DomainName]/relations/[Id]"

But it is not efficiently to request all of them by one.

 

We examined sources of rest api module and found out that there are two ways to get the relations' info: BASIC_DETAILS and FULL_DETAILS.

Temporally we created our own build with a little fix. But it would be great if you add a new query parameter (like domain_id, limit or filter) for multiple response which will determine what kind of relations' info we need.

 

Thank you.

Dear Egor,
 
thank you for your suggestion, we'll keep it in mind for the next developments.
 
Best regards.
 
-- CMDBuild Team
 
Previously Egor wrote:

Hello. We have a problem with getting of the relations' attributes.

1. As it is said in a manual, we can get all relations by:

GET "domains/[DomainName]/relations"

But the result doesn't include relations' attributes.

 

2. Also we can get detailed information about a relation by:

GET "domains/[DomainName]/relations/[Id]"

But it is not efficiently to request all of them by one.

 

We examined sources of rest api module and found out that there are two ways to get the relations' info: BASIC_DETAILS and FULL_DETAILS.

Temporally we created our own build with a little fix. But it would be great if you add a new query parameter (like domain_id, limit or filter) for multiple response which will determine what kind of relations' info we need.

 

Thank you.

 

Thank you very much. But one more question. Do you accept pull requests? Maybe we could send to you our changes and solve the problem this way, it also might be easier for you? :) 
 
Previously Tecnoteca wrote:
Dear Egor,
 
thank you for your suggestion, we'll keep it in mind for the next developments.
 
Best regards.
 
-- CMDBuild Team
 
Previously Egor wrote:

Hello. We have a problem with getting of the relations' attributes.

1. As it is said in a manual, we can get all relations by:

GET "domains/[DomainName]/relations"

But the result doesn't include relations' attributes.

 

2. Also we can get detailed information about a relation by:

GET "domains/[DomainName]/relations/[Id]"

But it is not efficiently to request all of them by one.

 

We examined sources of rest api module and found out that there are two ways to get the relations' info: BASIC_DETAILS and FULL_DETAILS.

Temporally we created our own build with a little fix. But it would be great if you add a new query parameter (like domain_id, limit or filter) for multiple response which will determine what kind of relations' info we need.

 

Thank you.

 

 

Yes, we accept pull requests.

CMDBuild Team