spring-hateoas icon indicating copy to clipboard operation
spring-hateoas copied to clipboard

Add support for @ModelAttribute

Open Gearme opened this issue 5 years ago • 1 comments
trafficstars

Controller method parameters annotated with MVC's @ModelAttribute currently do not get represented in HAL. Adding support for that Annotation (provided explictly or implicitly) would be appreciated. @gregturn suggested that QueryParameter, currently responsible for @RequestParam, could be modified to cover that Attribute as well.

Note that RFC6570 - aside from its form-style query expansion - also defines a composite value using an "explode" modifier ("*"). Support for @ModelAttribute could conveivably take either shape, or even offer that choice to the developer in some way.

style example
simple form style {?field1,field2,field3,page,size,sort}
with composite value {?myClass*,page,size,sort}

Gearme avatar Mar 27 '20 12:03 Gearme

Hi team, Thanks for this amazing work ! Any news on this subject ? :) Have a nice day !

gabbloquet avatar Mar 14 '23 10:03 gabbloquet