From 76762e7e37e7a76441afc4dd05f97ee057e05b75 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Wed, 11 May 2016 18:10:29 +0200 Subject: [PATCH] Added documentation entry for json / txt fixes #269 --- docs/src/docs/asciidoc/contract.adoc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/src/docs/asciidoc/contract.adoc b/docs/src/docs/asciidoc/contract.adoc index 8778f7259b..ad8c58b3f3 100644 --- a/docs/src/docs/asciidoc/contract.adoc +++ b/docs/src/docs/asciidoc/contract.adoc @@ -4,7 +4,7 @@ Contract DSL in Accurest is written in Groovy, but don't be alarmed if you didn' a tiny subset of it (namely literals, method calls and closures). What's more, Accurest's DSL is designed to be programmer-readable without any knowledge of the DSL itself - it's statically typed. -WARNING: Since {messaging_version} you can use the `io.codearte.accurest.dsl.Accurest` class in your DSL files. +TIP: Since {messaging_version} you can use the `io.codearte.accurest.dsl.Accurest` class in your DSL files. Let's look at full example of a contract definition. @@ -17,6 +17,12 @@ Not all features of the DSL are used in example above. If you didn't find what y > You can easily compile Accurest Contracts to WireMock stubs mapping using standalone maven command: `mvn io.codearte.accurest:accurest-maven-plugin:convert`. +=== Limitations + +WARNING: Accurest doesn't support XML properly. Please use JSON or help us implement this feature. + +WARNING: Accurest supports equality check on text response. Regular expressions are not yet available. + === HTTP Top-Level Elements Following methods can be called in the top-level closure of a contract definition. Request and response are mandatory, priority is optional.