Skip to content

Commit

Permalink
Updated grouped parameter example and added a comment
Browse files Browse the repository at this point in the history
(cherry picked from commit 2c15623)
  • Loading branch information
drmaniac authored and gsmet committed Mar 2, 2023
1 parent 718765e commit cba422c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/main/asciidoc/resteasy-reactive.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cba422c

Please sign in to comment.