Slide 33
Slide 33 text
'
Spring Cloud Contract
request {
method 'PUT'
url '/fraudcheck'
body([
"client.id": $(regex('[0-9]{10}')),
loanAmount : 99999
])
headers {
contentType('application/json')
}
}
response {
status OK()
body([
fraudCheckStatus : "FRAUD",
"rejection.reason": "Amount too high"
])
headers {
contentType('application/json')
}
}
33