From e61a4965adc78ab12cea15766b0ef38e5508af31 Mon Sep 17 00:00:00 2001 From: Christian Pieczewski Date: Wed, 1 Mar 2023 09:55:23 +0100 Subject: [PATCH] Updated grouped parameter example and added a comment --- docs/src/main/asciidoc/resteasy-reactive.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/resteasy-reactive.adoc b/docs/src/main/asciidoc/resteasy-reactive.adoc index f75a07c6e412db..d28ea1c03e799a 100644 --- a/docs/src/main/asciidoc/resteasy-reactive.adoc +++ b/docs/src/main/asciidoc/resteasy-reactive.adoc @@ -383,7 +383,7 @@ public class Endpoint { } @POST - public String allParams(Parameters parameters) { + public String allParams(@BeanParam Parameters parameters) { <1> return parameters.type + "/" + parameters.variant + "/" + parameters.age + "/" + parameters.level + "/" + parameters.secretHandshake + "/" + parameters.smell; @@ -391,6 +391,8 @@ public class Endpoint { } ---- +<1> `BeanParam` is required to comply with the JAX-RS specification so that libraries like OpenAPI can introspect the parameters. + === Declaring URI parameters [[uri-parameters]]