Details
-
Task
-
Resolution: Obsolete
-
Neutral
-
None
-
2.0
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
Description
New method with body parameter was recently introduced into the api of rest client.
Response invoke(String restCallName, Object body, Map<String, Object> additionalDefaultValues);
In fact, such introduction is not needed because whole body object can be safely set using additionalDefaultValues. Example:
Definition:
baseUrl: https://some.api
restCalls:
myRestCallWithBody:
path: /some/path
method: post
body: {body}
and template:
[#assign mySuperLongBody = "{.......}"] [#assign result = restfn.call("client", "myRestCallWithBody", {body: mySuperLongBody)]
Method should be also removed from restfn.
Checklists
Acceptance criteria