You can use separate stub/mappings that match on different emails.
Assuming that your url is some-Url
and uses a queryParameter of email...
{
"request": {
"url": "/some-Url",
"queryParameters": {
"email": {
"equalTo": "[email protected]"
}
}
},
"response": {
"status": 200
}
}
{
"request": {
"url": "/some-Url",
"queryParameters": {
"email": {
"equalTo": "[email protected]"
}
}
},
"response": {
"proxyBaseUrl": "http://my-other-url.com"
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…