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}

Activity

added this to the 1.2.0-M1 milestone on Apr 29, 2020
modified the milestones: 1.2 M1, 1.2 RC1 on Aug 11, 2020
modified the milestones: 1.2 RC1, 1.2 GA on Sep 15, 2020
modified the milestones: 1.2 GA, 1.3 M1 on Oct 27, 2020
modified the milestones: 1.3 M1, 1.3 M2 on Jan 13, 2021
modified the milestones: 1.3 M2, 1.3 RC1 on Feb 16, 2021
modified the milestones: 1.3 M3, 1.4 M1 on Mar 15, 2021

8 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Add support for @ModelAttribute · Issue #1240 · spring-projects/spring-hateoas