AddApiExplorer Extension Method cannot be used in ABP 8.1
Is there an existing issue for this?
- [X] I have searched the existing issues
Description
After Upgrading to version 8.1 of ABP, API versioning has been switched to use Asp.Versioning.Mvc instead of Microsoft.AspNetCore.Mvc.Versioning. This part works great however, it should also allow the use of Asp.Versioning.Mvc.ApiExplorer.
To use the AddApiExplorer extenstion method, the AddAbpApiVersioning method would need to provide an overload that returns IApiVersioningBuilder. That would allow the use of AddApiExplorer
This is to follow: Asp.Versioning
Reproduction Steps
context.Services.AddAbpApiVersioning(options =>
{
options.DefaultApiVersion = new ApiVersion(1, 0);
options.AssumeDefaultVersionWhenUnspecified = true;
options.ReportApiVersions = true;
})
.AddApiExplorer(options =>
{
options.GroupNameFormat = "'v'VVV";
options.SubstituteApiVersionInUrl = true;
}); // Calling this extension method fails since it requires AddAbpApiVersioning to return IApiVersioningBuilder
Expected behavior
Able to use the non depracted version of Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer which is Asp.Versioning.Mvc.ApiExplorer
Actual behavior
The extension method cannot be used
Regression?
No response
Known Workarounds
Creating the overload for AddAbpApiVersioning myself
Version
8.1.3
User Interface
Angular
Database Provider
EF Core (Default)
Tiered or separate authentication server
Tiered
Operation System
Windows (Default)
Other information
No response