Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -2029,9 +2029,9 @@ public class RestClient implements ClientHttpRequestInterceptor, Closeable { |
2029 | 2029 | } |
2030 | 2030 | } |
2031 | 2031 | |
2032 | - public Optional<RuleChain> setRootRuleChain(RuleChainId ruleChainId, EdgeId edgeId) { | |
2032 | + public Optional<Edge> setRootRuleChain(EdgeId edgeId, RuleChainId ruleChainId) { | |
2033 | 2033 | try { |
2034 | - ResponseEntity<RuleChain> ruleChain = restTemplate.postForEntity(baseURL + "/api/edge/{edgeId}/{ruleChainId}/root", null, RuleChain.class, edgeId.getId(), ruleChainId.getId()); | |
2034 | + ResponseEntity<Edge> ruleChain = restTemplate.postForEntity(baseURL + "/api/edge/{edgeId}/{ruleChainId}/root", null, Edge.class, edgeId.getId(), ruleChainId.getId()); | |
2035 | 2035 | return Optional.ofNullable(ruleChain.getBody()); |
2036 | 2036 | } catch (HttpClientErrorException exception) { |
2037 | 2037 | if (exception.getStatusCode() == HttpStatus.NOT_FOUND) { | ... | ... |