Skip to content
Discussion options

You must be logged in to vote

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 🙂.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TheMatrixDeveloper
Comment options

Answer selected by TheMatrixDeveloper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants