You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this functionality is useful in a variety of contexts, it would be more natural to receive the ApiVersion value in the scope of a controller using model binding.
Proposed Solution
Enable modeling binding in ASP.NET Core and Web API. This will enable controllers to define an ApiVersion parameter and have the value provided by model binding.
Overview
The requested ApiVersion is currently accessible via the following extension methods:
Request.GetRequestedApiVersion()
[Web API]Request.ApiVersioningProperties().RequestedApiVersion
[Web API]HttpContext.GetRequestedApiVersion()
[Core]HttpContext.Features.GetFeature<IApiVersioningFeature>().RequestedApiVersion
[Core]While this functionality is useful in a variety of contexts, it would be more natural to receive the ApiVersion value in the scope of a controller using model binding.
Proposed Solution
Enable modeling binding in ASP.NET Core and Web API. This will enable controllers to define an ApiVersion parameter and have the value provided by model binding.
The text was updated successfully, but these errors were encountered: