Skip to content

6.0.0 Preview 2

Pre-release
Pre-release
Compare
Choose a tag to compare
@commonsensesoftware commonsensesoftware released this 09 Apr 04:53
· 239 commits to main since this release

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)