Skip to content

AspNet Api Versioning with Net 6 Minimal APIs #794

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
mdmoura opened this issue Dec 3, 2021 · 3 comments
Closed

AspNet Api Versioning with Net 6 Minimal APIs #794

mdmoura opened this issue Dec 3, 2021 · 3 comments

Comments

@mdmoura
Copy link

mdmoura commented Dec 3, 2021

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?

@commonsensesoftware
Copy link
Collaborator

Versioning with Minimal APIs is not currently supported. It has been asked for via #751. It is definitely possible, but it requires a pretty significant change the underlying infrastructure to light up. It's on the roadmap.

@commonsensesoftware
Copy link
Collaborator

Quick update. This is officially part of the 6.0 Roadmap. If you're interested in seeing what it will look like, you can take a peek here.

@commonsensesoftware
Copy link
Collaborator

This is now supported in the 6.0 package Asp.Versioning.Http. Please make sure you've read all the announcements and release notes; there's a lot of changes. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants