github dotnet/aspnet-api-versioning v6.0.0-preview.2
6.0.0 Preview 2

latest releases: v10.0.0-preview.1, v8.1.0, v8.0.0...
pre-release3 years ago

This is a quick iteration to Preview 2 with a few key fixes and enhancements.

Enhancements

All Platforms

  • Added ApiExplorerOptions.RouteConstraintName (useful for resolving API parameters by constraint)

ASP.NET Core

  • Added DescribeApiVersions extension method which can be used by WebApplication
    • This is functionally equivalent to IApiVersionDescriptionProvider
    • The implementation uses the DefaultApiVersionDescriptionProvider
  • DefaultApiVersionDescriptionProvider now uses EndpointDataSource instead of IActionDescriptorCollectionProvider
  • ApiVersionMetadata.Name will be used for controller token in ActionDescriptor for Minimal APIs, if specified
    • For Minimal APIs, this is typically provided via app.DefineApi(name: "My API")
  • Added feature parity with OpenApiRouteHandlerExtensions such as Accepts, Produces, etc
  • Added OpenAPI example with API Versioning, Minimal APIs, and Swashbuckle

Fixes

ASP.NET Core

  • Support API Explorer extensions for Minimal APIs (#812)

Don't miss a new aspnet-api-versioning release

NewReleases is sending notifications on new releases.