diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index ee45f1c3c2..101b57481e 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -1768,7 +1768,7 @@ org.springframework.cloud.contract.spec.Contract.make { loanAmount: 99999 ]) headers { // (5) - contentType('application/vnd.fraud.v1+json') + contentType('application/json') } } response { // (6) @@ -1778,7 +1778,7 @@ org.springframework.cloud.contract.spec.Contract.make { rejectionReason: "Amount too high" ]) headers { // (9) - contentType('application/vnd.fraud.v1+json') + contentType('application/json') } } } @@ -1801,12 +1801,12 @@ From the Consumer perspective, when shooting a request in the integration test: (4) - with the JSON body that * has a field `clientId` that matches a regular expression `[0-9]{10}` * has a field `loanAmount` that is equal to `99999` -(5) - with header `Content-Type` equal to `application/vnd.fraud.v1+json` +(5) - with header `Content-Type` equal to `application/json` (6) - then the response will be sent with (7) - status equal `200` (8) - and JSON body equal to { "fraudCheckStatus": "FRAUD", "rejectionReason": "Amount too high" } -(9) - with header `Content-Type` equal to `application/vnd.fraud.v1+json` +(9) - with header `Content-Type` equal to `application/json` From the Producer perspective, in the autogenerated producer-side test: @@ -1816,12 +1816,12 @@ From the Producer perspective, in the autogenerated producer-side test: (4) - with the JSON body that * has a field `clientId` that will have a generated value that matches a regular expression `[0-9]{10}` * has a field `loanAmount` that is equal to `99999` -(5) - with header `Content-Type` equal to `application/vnd.fraud.v1+json` +(5) - with header `Content-Type` equal to `application/json` (6) - then the test will assert if the response has been sent with (7) - status equal `200` (8) - and JSON body equal to { "fraudCheckStatus": "FRAUD", "rejectionReason": "Amount too high" } -(9) - with header `Content-Type` matching `application/vnd.fraud.v1+json.*` +(9) - with header `Content-Type` matching `application/json.*` */ @@ -2067,11 +2067,7 @@ public class LoanApplicationServiceTests {
-
@RequestMapping(
-		value = "/fraudcheck",
-		method = PUT,
-		consumes = FRAUD_SERVICE_JSON_VERSION_1,
-		produces = FRAUD_SERVICE_JSON_VERSION_1)
+
@RequestMapping(value = "/fraudcheck", method = PUT)
 public FraudCheckResult fraudCheck(@RequestBody FraudCheck fraudCheck) {
 return new FraudCheckResult(FraudCheckStatus.OK, NO_REASON);
 }
@@ -2218,11 +2214,7 @@ public void validate_shouldMarkClientAsFraud() throws Exception {
-
@RequestMapping(
-		value = "/fraudcheck",
-		method = PUT,
-		consumes = FRAUD_SERVICE_JSON_VERSION_1,
-		produces = FRAUD_SERVICE_JSON_VERSION_1)
+
@RequestMapping(value = "/fraudcheck", method = PUT)
 public FraudCheckResult fraudCheck(@RequestBody FraudCheck fraudCheck) {
 if (amountGreaterThanThreshold(fraudCheck)) {
 	return new FraudCheckResult(FraudCheckStatus.FRAUD, AMOUNT_TOO_HIGH);