Skip to content

[REQ] [SPRING] support for api versioning in spring 7 #22027

@jpfinne

Description

@jpfinne

Spring 7 has a new attribute in @RequestMapping: version.

It is described in https://docs.spring.io/spring-framework/reference/7.0/web/webmvc-versioning.html

It is good to make this configurable in the Spring generator.

Describe the solution you'd like

Add a new configOption to specify the default version AND a vendorExtension to customize the version per operation

Describe alternatives you've considered

patch JavaSpring/api.mustache

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions