Skip to content

Support injecting the API version into a controller method #35424

@rstoyanchev

Description

@rstoyanchev

Most often it would be SemanticApiVersionParser.Version parses to a known, public Version type. We can easily support injecting that into a controller method since the parsed version is stored in a request attribute.

For anything else we wouldn't be able to recognize the method parameter, but we could explore exposing the version type from the parser, and passing it into the resolver.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions