Skip to content

Web API: API Explorer Fails with API Version Parameter #671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
commonsensesoftware opened this issue Oct 13, 2020 · 0 comments · Fixed by #672
Closed

Web API: API Explorer Fails with API Version Parameter #671

commonsensesoftware opened this issue Oct 13, 2020 · 0 comments · Fixed by #672
Assignees
Milestone

Comments

@commonsensesoftware
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant