Slide 27
Slide 27 text
Stubs
Stubs
{
"request": {
"url": "/fraudcheck",
"method": "PUT",
"bodyPatterns": [
{
"matchesJsonPath": "$[?(@.loanAmount == 99999)]"
},
{
"matchesJsonPath": "$[?(@.clientId == '12345678902')]"
}
],
"headers": {
"Content-Type": {
"equalTo": "application/vnd.fraud.v1+json"
}
}
},
"response": {
"status": 200,
"body": "{\"fraudCheckStatus\":\"FRAUD\",
\"rejectionReason\":\"Amount too high\"}",
"headers": {
"Content-Type": "application/vnd.fraud.v1+json"
}
}
}
@olga_maciaszek