From 472cd89768281b1a9227268041e02e7652d4c696 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Thu, 21 Jul 2016 14:39:57 +0200 Subject: [PATCH] Updated readme --- README.adoc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.adoc b/README.adoc index 5b8da2edfe..8e3569c9c0 100644 --- a/README.adoc +++ b/README.adoc @@ -201,24 +201,26 @@ org.springframework.cloud.contract.spec.Contract.make { url '/fraudcheck' body(""" { - "clientId":"${value(consumer(regex('[0-9]{10}')), producer('1234567890'))}", + "clientId":"${value(consumer(regex('[0-9]{10}')))}", "loanAmount":99999} """ ) headers { header('Content-Type', 'application/vnd.fraud.v1+json') } - } response { status 200 body( """{ - "fraudCheckStatus": "${value(consumer('FRAUD'), producer(regex('[A-Z]{5}')))}", - "rejectionReason": "Amount too high" -}""") + "fraudCheckStatus": "FRAUD", + "rejectionReason": "Amount too high" + }""") headers { - header('Content-Type': value(producer(regex('application/vnd.fraud.v1.json.*')), consumer('application/vnd.fraud.v1+json'))) - } + header('Content-Type': value( + producer(regex('application/vnd.fraud.v1.json.*')), + consumer('application/vnd.fraud.v1+json')) + ) + } } }