Hi All, Can someone help me on the below issue. I am trying to use some conditions in the response body but I couldn’t achieve and also I couldn’t find any documentation in the website as well. Basically according to the request header , body field value should be set.
Mapper :
{
"request": {
"method": "GET",
"urlPath": "/example"
},
"response": {
"status": 200,
"transformers": [
"response-template"
],
"bodyFileName": "test.json",
"headers": {
"Content-Type": "application/json",
"correctionID" : "1"
}
}
}
File:
{
"field1": "{{#if request.headers.correctionID '==' 'abc'}}1{{else}}not met{{/if}}"
}
but this not working not sure how to add the equal condition in the Handle bar.