Slide 57
Slide 57 text
Generated WireMock Stub
{ "id" : "88dd475b-005d-4a1d-a6c5-3d40493c8d37",
"request" : {
"url" : "/fraudcheck",
"method" : "POST",
"headers" : {
"Content-Type" : {
"equalTo" : "application/vnd.fraud.v1+json;charset=UTF-8" }},
"bodyPatterns" : [ {
"matchesJsonPath" : "$[?(@.['loanAmount'] == 99999)]" }, {
"matchesJsonPath" : "$[?(@.['clientId'] =~
/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/)]" } ] },
"response" : {
"status" : 200,
"body" : "{\"fraudCheckStatus\":\"FRAUD\",\"rejectionReason\":\"Amount too high\"}",
"headers" : {
"Content-Type" : "application/vnd.fraud.v1+json;charset=UTF-8" },
"transformers" : [ "response-template" ]},
"uuid" : "88dd475b-005d-4a1d-a6c5-3d40493c8d37"}