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 committed Mar 1, 2023
1 parent 3ffbd93 commit e61a496
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/main/asciidoc/resteasy-reactive.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -383,14 +383,16 @@ 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

[[uri-parameters]]
Expand Down

0 comments on commit e61a496

Please sign in to comment.