Skip to content

Implicitly Versioned OData Controller Is Not Resolved #8

Closed
@commonsensesoftware

Description

@commonsensesoftware

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.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions