Sync docs from master to gh-pages

This commit is contained in:
Marcin Grzejszczak
2016-08-30 11:10:40 +02:00
parent 1fcc438a9f
commit bdaab4a54e

View File

@@ -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.
}</code></pre>
</div>
</div>
<div class="paragraph">
<p><strong>Body&#8217;s format</strong> can also be specified explicitly by invoking one of format functions.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-groovy" data-lang="groovy">org.springframework.cloud.contract.spec.Contract.make {
request {
//...
// In this case body will be formatted as XML.
body equalToXml(
'''&lt;user&gt;&lt;login&gt;john&lt;/login&gt;&lt;name&gt;John The Contract&lt;/name&gt;&lt;/user&gt;'''
)
}
response {
//...
}
}</code></pre>
</div>
</div>
</div>
<div class="sect3">
<h4 id="_response">Response</h4>
@@ -5410,7 +5389,7 @@ number of different ways, including as described above using
</div>
<div id="footer">
<div id="footer-text">
Last updated 2016-08-30 03:20:24 UTC
Last updated 2016-08-22 11:33:40 CEST
</div>
</div>
</body>