Mani Kasi
07/25/2023, 4:46 PM{{#assign 'myCapitalisedQuery'}}{{capitalize request.query.search}}{{/assign}}
variable assignment and reuse in the response template.
Can some one give a sample response for this?Tom
07/25/2023, 6:14 PMMani Kasi
07/27/2023, 4:42 PM.....
*"jsonBody"*: {
"output": {{#assign 'reqName'}}{{jsonPath request.body '$.persons[0].name'}}{{/assign}}{{reqName}},
"personName" : {{reqName}}
}
.....
Output as follows:
response -> { "output" : "foo", "personName" : "foo" }