Is it possible to use AspNet Api Versioning with Net 6 Minimal APIs?
Asked Answered
E

1

5

I am using Net 6 Minimal APIs:

application.MapGet("countries", async (IService service) => {
  var countries = await mediator.Send(request);
  return Results.Ok(countries);
});

Is it possible to use AspNet Api Versioning with Net 6 Minimal APIs? How?

Eurhythmy answered 3/12, 2021 at 14:34 Comment(0)
E
11

ASP.NET API Versioning with Minimal APIs is not currently supported. It is on the roadmap as a feature enhancement.

ASP.NET API Versioning now supports Minimal APIs.

New Packages:

Examples:

Emaciation answered 3/12, 2021 at 17:53 Comment(3)
Yes, we should get this working for .NET 7 :) (related github.com/dotnet/aspnetcore/issues/36007)Latoyia
Could you take a look into this one please? #72455134Gorton
@Gorton the question is not related to API Versioning, but I answered it anyway.Emaciation

© 2022 - 2024 — McMap. All rights reserved.