Methods findInfoByTo() and findInfoByQuery() should return EntityRelationInfo but no EntityRelation
This commit is contained in:
		
							parent
							
								
									8fe13a2c7a
								
							
						
					
					
						commit
						8e279bbbd7
					
				@ -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>>() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user