Methods findInfoByTo() and findInfoByQuery() should return EntityRelationInfo but no EntityRelation

This commit is contained in:
Viacheslav Kukhtyn 2020-12-21 12:01:24 +02:00 committed by Andrew Shvayka
parent 8fe13a2c7a
commit 8e279bbbd7

View File

@ -1456,7 +1456,7 @@ public class RestClient implements ClientHttpRequestInterceptor, Closeable {
params.put("relationTypeGroup", relationTypeGroup.name());
return restTemplate.exchange(
baseURL + "/api/relations?toId={toId}&toType={toType}&relationTypeGroup={relationTypeGroup}",
baseURL + "/api/relations/info?toId={toId}&toType={toType}&relationTypeGroup={relationTypeGroup}",
HttpMethod.GET,
HttpEntity.EMPTY,
new ParameterizedTypeReference<List<EntityRelationInfo>>() {
@ -1491,7 +1491,7 @@ public class RestClient implements ClientHttpRequestInterceptor, Closeable {
public List<EntityRelationInfo> findInfoByQuery(EntityRelationsQuery query) {
return restTemplate.exchange(
baseURL + "/api/relations",
baseURL + "/api/relations/info",
HttpMethod.POST,
new HttpEntity<>(query),
new ParameterizedTypeReference<List<EntityRelationInfo>>() {