From ddfc84e231cb3f38dda3147e07d9c6d8ddf219c9 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Tue, 30 Aug 2016 09:34:35 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-contract.html | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/spring-cloud-contract.html b/spring-cloud-contract.html index e59c70f851..2c57264f39 100644 --- a/spring-cloud-contract.html +++ b/spring-cloud-contract.html @@ -1891,7 +1891,7 @@ Groovy Map notation. request { //... - // JSON and XML formats of request body are supported. + // Currently only JSON format of request body is supported. // Format will be determined from a header or body's content. body '''{ "login" : "john", "name": "John The Contract" }''' } @@ -1902,27 +1902,6 @@ Groovy Map notation. } -
-

Body’s format can also be specified explicitly by invoking one of format functions.

-
-
-
-
org.springframework.cloud.contract.spec.Contract.make {
-	request {
-		//...
-
-		// In this case body will be formatted as XML.
-		body equalToXml(
-				'''<user><login>john</login><name>John The Contract</name></user>'''
-		)
-	}
-
-	response {
-		//...
-	}
-}
-
-

Response

@@ -5410,7 +5389,7 @@ number of different ways, including as described above using