Skip to content

Commit

Permalink
Updated grouped parameter example and added a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
drmaniac authored and gsmet committed Mar 2, 2023
1 parent 3ffbd93 commit 2c15623
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 @@ -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

Expand Down

0 comments on commit 2c15623

Please sign in to comment.