Added documentation entry for json / txt

fixes #269
This commit is contained in:
Marcin Grzejszczak
2016-05-11 18:10:29 +02:00
parent 1c5337b1ea
commit 76762e7e37

View File

@@ -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.