How to control the version of the Swagger documentation in . Netcore?

Asked

Viewed 42 times

0

I am generating a Swagger documentation from an API on. Net Core, I would like to know if it is possible through separate notations in the documentation which are the Apis of my version 1 and version 2 of my system. Note: My Apis use the version number on the route as follows: Version 1 = "/api/v1/" and version 2 = "/api/v2/".

  • Make a code available ?

  • Link to doubt: https://stackoverflow.com/questions/46058930/swagger-not-working-correctly-with-multiple-versions-of-asp-net-webapi-app

  • 1

    Already help, I didn’t know how to research it. I found a medium tutorial on this: https://medium.com/@Nelson.souza/net-core-api-versioning-d4f869fb9052. I’ll try to replicate and close the discussion if it works.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.