I have my request & response configured at wiremock service as below-
req:
{
"request": {
"method": "POST",
"urlPathPattern": "/wiremock/end1”,
"bodyPatterns": [
{
"matchesJsonPath": {
"expression": "$.endToEndId",
"matches": "^T(.*)$"
}
}
]
},
"response": {
"status": 200,
"bodyFileName": “folder1/response.json”,
"headers": {
"Content-Type": "application/json; charset=utf-8"
}
}
}
resp:
{
“response”: [
{
}]
}
my question is, as this wiremock will listen for this request format. Would I be able to change upcoming request body's one of the key to another value before actual api call happens?