Skip to content

MVC Routes: prefix route attributes with annotation name #1099

@jknack

Description

@jknack

Example

@Role("admin")
public .. myControllerMethod(..) {
  ..
}

Here req.route().attributes() will be {role = admin} (no change with existing functionality.

Now for annotation with more than one attribute:

@ApiOperation(value = "API Summary", tags="foo", code=200)
public .. myControllerMethod(..) {
  ..
}

Today generates: {apiOperation = ApiSummary, tags = foo, code = 200} after this change is going to be {apiOperation = ApiSummary, ApiOperation.tags = foo, ApiOperation.code = 200}

Previous implementation available here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions