From bdaab4a54e62b9e5d8192ca91743499384ad7466 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Tue, 30 Aug 2016 11:10:40 +0200 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 e65c37f51c..72dda36236 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