@@ -83,12 +83,12 @@ include::{verifier_core_path}/src/test/groovy/org/springframework/cloud/contract
|
||||
include::{verifier_core_path}/src/test/groovy/org/springframework/cloud/contract/verifier/builder/ContractHttpDocsSpec.groovy[tags=body,indent=0]
|
||||
----
|
||||
|
||||
**Body's format** can also be specified explicitly by invoking one of format functions.
|
||||
|
||||
[source,groovy,indent=0]
|
||||
----
|
||||
include::{verifier_core_path}/src/test/groovy/org/springframework/cloud/contract/verifier/builder/ContractHttpDocsSpec.groovy[tags=bodyAsXml,indent=0]
|
||||
----
|
||||
//**Body's format** can also be specified explicitly by invoking one of format functions.
|
||||
//
|
||||
//[source,groovy,indent=0]
|
||||
//----
|
||||
//include::{verifier_core_path}/src/test/groovy/org/springframework/cloud/contract/verifier/builder/ContractHttpDocsSpec.groovy[tags=bodyAsXml,indent=0]
|
||||
//----
|
||||
|
||||
==== Response
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ class ContractHttpDocsSpec extends Specification {
|
||||
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" }'''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user