Minimal API Versioning - Endpoint not found
See original GitHub issueAs per description in https://fast-endpoints.com/docs/api-versioning#mark-endpoint-with-a-version, we tried to enable versioning in existing minimal API.
In Configuration we put
app.UseFastEndpoints(c =>
{
c.Versioning.Prefix = "v";
c.Versioning.DefaultVersion = 1;
});
And in Endpoint Configuration
public override void Configure()
{
// Before Versioning
Post("v1/accounts/{@id}/status", x => new {x.Id});
// After Versioning
Post("accounts/{@id}/status", x => new {x.Id});
Version(1);
}
After enabling Versioning, I get 404 when I hit
POST http://localhost:5000/v1/accounts/1/status
I don’t know where I am failing…
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Asp.Versioning Libraries do not add Minimal API ...
I wish to be able to systematically add Swagger Endpoints based on which endpoints exist in my project, regardless of it being a...
Read more >Issue with IsApiVersionNeutral in asp.net minimal api ...
Hi I am trying to implement versioning in asp.net core minimal api (net7.0). But I am seeing some url access issues with certain...
Read more >How to version minimal APIs in ASP.NET Core 6
Follow these steps to implement API versioning in minimal Web API endpoints using ASP.NET Core 6.
Read more >Tutorial: Create a minimal API with ASP.NET Core
Learn how to build a minimal API with ASP.NET Core.
Read more >API Versioning with ASP.NET Core 6.0 Minimal APIs
This post is about how to implement api versioning in ASP.NET Core 6.0 Minimal APIs. Earlier Minimal APIs versioning was not supported.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
see
SuffixedVersion
at the bottom of the page you linked above.Ohh I missed it , Thanks buddy. 😃