From 2c156236f87d4e849abf93ac3168ad0c118f44d9 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 | 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 f75a07c6e412d..763957627a3e8 100644 --- a/docs/src/main/asciidoc/resteasy-reactive.adoc +++ b/docs/src/main/asciidoc/resteasy-reactive.adoc @@ -383,13 +383,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