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
When defining a controller action with a model bound API version, public IHttpActionResult Get( ApiVersion version ), which is versioned by URL segment with the ApiVersionRouteConstraint, API exploration throws an exception.
Analysis
A model bound ApiVersion parameter may be reported as ApiParamaterSource.Unknown. When part of the URL path, a placeholder is required to expand the path and evaluate the template. The only appears to affect versioning by URL segment and when including a model bound ApiVersion parameter.
The text was updated successfully, but these errors were encountered:
Symptoms
When defining a controller action with a model bound API version,
public IHttpActionResult Get( ApiVersion version )
, which is versioned by URL segment with the ApiVersionRouteConstraint, API exploration throws an exception.Analysis
A model bound ApiVersion parameter may be reported as
ApiParamaterSource.Unknown
. When part of the URL path, a placeholder is required to expand the path and evaluate the template. The only appears to affect versioning by URL segment and when including a model bound ApiVersion parameter.The text was updated successfully, but these errors were encountered: