You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating multiple or reusable query parameters like pagination object for example is good to have all fields in a class converted to @QueryValue. For example:
Another use case is in a filter UI where a huge number of parameters are optional and part of the search.
Consider validation required and nonrequired fields inside object.
SpringDoc has a @ParameterObject annotation that does this.
Another advantage is from a developer perspective you don't have a chance to misspell any filter or pagination in different controllers as it is now reusable, and you can pass the hole object thought your layer no need to manual create the object in controller layer.
The text was updated successfully, but these errors were encountered:
Feature description
When creating multiple or reusable query parameters like pagination object for example is good to have all fields in a class converted to @QueryValue. For example:
the pagination object could be populated by the params ?page=1&size=10 as optional parameters.
This should be equivalent to:
Another use case is in a filter UI where a huge number of parameters are optional and part of the search.
Consider validation required and nonrequired fields inside object.
SpringDoc has a @ParameterObject annotation that does this.
Another advantage is from a developer perspective you don't have a chance to misspell any filter or pagination in different controllers as it is now reusable, and you can pass the hole object thought your layer no need to manual create the object in controller layer.
The text was updated successfully, but these errors were encountered: