Sync docs from master to gh-pages

This commit is contained in:
buildmaster
2016-08-30 09:34:35 +00:00
parent ff5e99190c
commit ddfc84e231

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 06:20:00 UTC
Last updated 2016-08-30 09:20:18 UTC
</div>
</div>
</body>