Does anyone have a working example of AspNetCore .Net 6 + Swashbuckle + OData Web API

2.6k Views Asked by At

Does anyone have a working example of AspNetCore Web API with:

  • .Net 6
  • OData (including $batch)
  • Swashbuckle
  • versioning (api/v1,api/v2,etc)
2

There are 2 best solutions below

1
Roman Gudkov On

Finally figured it out. Working example is here at github

0
Chris Martinez On

At long last, ASP.NET API Versioning has official support for OData 8.0 on .NET 6.0, including the API Explorer extensions.

Examples:

New Packages: