Skip to content

Add support for @ModelAttribute #1240

Open
@Gearme

Description

@Gearme

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions