Best Practices and How to support different versions of REST APIs in C# wrapper on client-side
问题 I have written a C# wrapper to support our company project's REST APIs. However, these APIs are changing now - in terms on URL (may introduce version number in URL) and data objects it expects and returns back. I would like to know what would be the best practice on supporting different versions of REST APIs in my c# wrapper. And how should I do it - in terms of code design and class definitions - so that one wrapper can work seamlessly with different versions of API - and it should be