From cba422cb0d647defca6dd6a9885e2220cd376ac1 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 (cherry picked from commit 2c156236f87d4e849abf93ac3168ad0c118f44d9) --- docs/src/main/asciidoc/resteasy-reactive.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/resteasy-reactive.adoc b/docs/src/main/asciidoc/resteasy-reactive.adoc index 97549a0a2fc4d..37681074dc5a7 100644 --- a/docs/src/main/asciidoc/resteasy-reactive.adoc +++ b/docs/src/main/asciidoc/resteasy-reactive.adoc @@ -382,13 +382,14 @@ 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; } } ---- +<1> `BeanParam` is required to comply with the JAX-RS specification so that libraries like OpenAPI can introspect the parameters. === Declaring URI parameters