How does API versioning work

I wanted to ask for API versioning works and how to properly implement it into ASP.NET
because to me api/v1 and api/v2 just seem like 2 controllers that basically have the same controllers just handled differently
Is there a proper way to set this up and if yes, what's the best approach for it and how to handle a version like V1 going out if support if for example V5 rolls around
Was this page helpful?