I am trying to create dynamic mocks using WireMock. I have a situation where if I specify URL like :
http://localhost:8089/api/account/abc@abc.com
then I should receive response like:
{
"account" : "abc@abc.com"
}
In brief, the path param is returned in the response body. I am able to make the request URL generic by using urlPathPattern
set to /api/account/([a-z]*)
however, I am not sure how should I capture abc@abc.com
and return this in the response using regular expressions.