Added missing docs for #32

This commit is contained in:
Marcin Grzejszczak
2016-07-15 13:15:22 +02:00
parent 4ccec4fd22
commit bc22227fe3
3 changed files with 51 additions and 1 deletions

View File

@@ -113,6 +113,17 @@ Please see the example below:
include::{verifier_core_path}/src/test/groovy/org/springframework/cloud/contract/verifier/builder/ContractHttpDocsSpec.groovy[tags=regex,indent=0]
----
You can also provide only one side of the communication using a regular expression. If you do that then automatically we'll
provide the generated string that matches the provided regular expression. For example:
[source,groovy,indent=0]
----
include::{verifier_core_path}/src/test/groovy/org/springframework/cloud/contract/verifier/builder/MockMvcMethodBodyBuilderSpec.groovy[tags=dsl_one_side_data_generation_example,indent=0]
----
In this example for request and response the opposite side of the communication will have the respective data generated.
=== Passing optional parameters
It is possible to provide optional parameters in your contract. It's only possible to have optional parameter for the: