Skip to content
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

versionsets #371

Open
MannusEtten opened this issue Dec 24, 2024 · 1 comment
Open

versionsets #371

MannusEtten opened this issue Dec 24, 2024 · 1 comment

Comments

@MannusEtten
Copy link

i am using api versioning by headers
so in my regular minimal api code i do have

builder.Services.AddApiVersioning(options =>
{
options.DefaultApiVersion = apiVersion1;
options.ReportApiVersions = true;
options.AssumeDefaultVersionWhenUnspecified = true;
options.ApiVersionReader = new HeaderApiVersionReader("X-Api-Version");
});

app.WithApiVersionSet(versionSet).MapToApiVersion(apiVersion3);

how can i bring this middleware and versioning to Carter Modules?

@jchannon
Copy link
Member

This code should work with Carter I believe

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

No branches or pull requests

2 participants