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
Example
Here
req.route().attributes()will be{role = admin}(no change with existing functionality.Now for annotation with more than one attribute:
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