Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
2.0
-
None
-
None
-
-
Empty show more show less
-
Declarative REST 12, Declarative REST 13
-
3
Description
RestCallDefinitions are first wrapped on the Registry level where we wrap the RestClientDefinition, and then again in the DefaultRestClient.
@Override
public Response invoke(String restCallName, Object body, Map<String, Object> additionalDefaultValues) {
return ifClientCallExists(restCallName, () -> {
RestCallDefinition restCallDefinition = MutableWrapper.wrap(restClientDefinition.getRestCalls().get(restCallName));
return invoke(restCallDefinition, body, additionalDefaultValues);
});
}
Same also happens in the getter of the DefaultRestClient:
@Override
public RestClientDefinition getRestClientDefinition() {
return MutableWrapper.wrap(restClientDefinition);
}
restClientDefinition is already wrapped and getter wraps it again.
Checklists
Acceptance criteria