From 8e279bbbd7c1d6bba142493fec45448620bd3454 Mon Sep 17 00:00:00 2001 From: Viacheslav Kukhtyn Date: Mon, 21 Dec 2020 12:01:24 +0200 Subject: [PATCH] Methods findInfoByTo() and findInfoByQuery() should return EntityRelationInfo but no EntityRelation --- .../src/main/java/org/thingsboard/rest/client/RestClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest-client/src/main/java/org/thingsboard/rest/client/RestClient.java b/rest-client/src/main/java/org/thingsboard/rest/client/RestClient.java index e79bb2b713..b79987df62 100644 --- a/rest-client/src/main/java/org/thingsboard/rest/client/RestClient.java +++ b/rest-client/src/main/java/org/thingsboard/rest/client/RestClient.java @@ -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>() { @@ -1491,7 +1491,7 @@ public class RestClient implements ClientHttpRequestInterceptor, Closeable { public List findInfoByQuery(EntityRelationsQuery query) { return restTemplate.exchange( - baseURL + "/api/relations", + baseURL + "/api/relations/info", HttpMethod.POST, new HttpEntity<>(query), new ParameterizedTypeReference>() {