Slackbot
09/19/2023, 1:16 AMLee Turner
09/19/2023, 8:25 AM{
"name": "email_happypath",
"request": {
"method": "POST",
"url": "/send/email",
"bodyPatterns": [
{
"matchesJsonPath": "$[?(@.phone =~ /^5\\d{9}$/i)]"
}
]
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"jsonBody": {
"status": "OK"
}
}
}
I left out your bodyFileName
part just so I could test this out so you will have to replace the jsonBody
in the above example. I think that should work though.Anzar Ahsan
09/19/2023, 4:09 PM