Hello Nalavala, Harshavardhan,
Configure Swagger to work with different versions of an API in .NET.
please find the below documentation if it is helpful anyway.
https://medium.com/@seldah/managing-multiple-versions-of-your-api-with-net-and-swagger-47b4143e8bf5
hope this helps you.