6.0.0 Preview 2
Pre-release
Pre-release
·
242 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
DescribeApiVersionsextension method which can be used byWebApplication- This is functionally equivalent to
IApiVersionDescriptionProvider - The implementation uses the
DefaultApiVersionDescriptionProvider
- This is functionally equivalent to
DefaultApiVersionDescriptionProvidernow usesEndpointDataSourceinstead ofIActionDescriptorCollectionProviderApiVersionMetadata.Namewill be used forcontrollertoken inActionDescriptorfor Minimal APIs, if specified- For Minimal APIs, this is typically provided via
app.DefineApi(name: "My API")
- For Minimal APIs, this is typically provided via
- Added feature parity with
OpenApiRouteHandlerExtensionssuch asAccepts,Produces, etc- Note: This might change in the future. See dotnet/aspnetcore#39604
- Added OpenAPI example with API Versioning, Minimal APIs, and Swashbuckle
Fixes
ASP.NET Core
- Support API Explorer extensions for Minimal APIs (#812)