Skip to content

Additional updates for API versioning in test and client support #34919

Closed
@rstoyanchev

Description

@rstoyanchev

Some test support was added in #34568, to allow inserting a version with WebTestClient. After some more thought and use, there are more places we could update.

Make it possible to configure (server side) API versioning for mock server tests, e.g. standalone MockMvc tests, and the equivalent in WebFlux via WebTestClient#bindToController.

Support setting ApiVersionInserter in MockMvc tests via ConfigurableMockMvcBuilder, and specifying the version for a request through the RequestBuilder or MockMvcTester.

The ApiVersionInserter in the client support can also do with some updates based on actual use.

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