Skip to content

Implicitly Versioned OData Controller Is Not Resolved #8

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 Aug 10, 2016 · 0 comments
Closed
Assignees
Labels

Comments

@commonsensesoftware
Copy link
Collaborator

When implicit API versioning is enabled:

configuration.AddApiVersioning( o => o.AssumeDefaultVersionWhenUnspecified = true );

The following OData controller should be implicitly matched:

[ODataRoutePrefix( "People" )]
public class PeopleController : ODataController
{
    // GET ~/people
    // GET ~/people?api-version=1.0
    [ODataRoute]
    public IHttpActionResult Get() => Ok();

The server returns 4xx class response instead.

commonsensesoftware pushed a commit that referenced this issue Aug 11, 2016
…s also match the correct EDM and that controllers are implicitly matched when allowed. This fixes #7 and fixes #8.
commonsensesoftware pushed a commit that referenced this issue Aug 11, 2016
…s also match the correct EDM and that controllers are implicitly matched when allowed. This fixes #7 and fixes #8.
@commonsensesoftware commonsensesoftware self-assigned this Aug 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant