diff --git a/accurest-core/src/main/groovy/io/codearte/accurest/dsl/GroovyDsl.groovy b/accurest-core/src/main/groovy/io/codearte/accurest/dsl/GroovyDsl.groovy index 97b023b34e..b3b5a1e4e2 100644 --- a/accurest-core/src/main/groovy/io/codearte/accurest/dsl/GroovyDsl.groovy +++ b/accurest-core/src/main/groovy/io/codearte/accurest/dsl/GroovyDsl.groovy @@ -17,6 +17,7 @@ class GroovyDsl { Request request Response response String label + String description Input inputMessage OutputMessage outputMessage @@ -35,6 +36,10 @@ class GroovyDsl { this.label = label } + void description(String description) { + this.description = description + } + void request(@DelegatesTo(Request) Closure closure) { this.request = new Request() closure.delegate = request