I need to expose a new version of an API method as I cannot afford to have breaking changes to the existing one.
Existing : http://www.test.com/api/v1/customer/{id}
New : http://www.test.com/api/v2/customer/{id}
I have read about the different ways to do versioning and strategies applied. What I need to know is :
1) How to manage code base while I apply versioning?
2) Is it a must to have all the API's in all the versions?
I am working on ASP.NET web API and I have more than 100 endpoints in my current version and I am looking to avoid code duplication and find the best way to keep the code manageable.
Any help would be appreciable.