Home > other >  Is it possible to use AspNet Api Versioning with Net 6 Minimal APIs?
Is it possible to use AspNet Api Versioning with Net 6 Minimal APIs?

Time:12-04

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?

CodePudding user response:

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

  • Related