NET 8 Multiple API Versions not working? #5680
Answered
by
xC0dex
TheMatrixDeveloper
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
xC0dex
May 20, 2025
Replies: 1 comment 1 reply
-
|
Hey @TheMatrixDeveloper, You have to add one OpenAPI document per API version. More specific, calling There are numerous blog posts out here like |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TheMatrixDeveloper
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hey @TheMatrixDeveloper,
You have to add one OpenAPI document per API version. More specific, calling
builder.Services.AddSwaggerGen();is not enough.There are numerous blog posts out here like
https://markgossa.com/2022/05/asp-net-6-api-versioning-swagger.html or just watch this tutorial https://youtu.be/F9j3X6KuIpw?t=831. I think the video explains it pretty well 🙂.