I have a request with body like below:
"RequestBody": {
"numbers": ["20030013", "10010701", "10006402"]
}
And I'm trying to catch above request with Wiremock like:
{
"request": {
"urlPattern": "<my_url_com>",
"method": "POST",
"bodyPatterns": [
{
"matchesJsonPath": "$.RequestBody[?(@.numbers == ['10010701'])]"
}
]
},
"response": {
"status": 200,
"jsonBody": {
"ResponseBody": {
...
}
}
}
} Because I'm interested in only when request contains "10010701".
But it works only if numbers contain only one value. So, how can I catch this request with multiple values?