Forum Discussion
Harsha0803
Jun 04, 2024Copper Contributor
How to achieve Multiversioning/Backward compatability for Dotnet 8. APIs?
What is the effective way in achieving "Multiversioning, Versioning, Backward compatability" for Dotnet 8.0 APIs . These APIs are going to be deployed AKS cluster as microservices.
1 Reply
Sort By
- gudokjsCopper Contributor
Harsha0803
The most common strategy is using URL versioning, that is clear, easily understood by clients, and aligns well with RESTful principles. To do that you need:- Embed the API version in the request URL (e.g., /api/v1/products, /api/v2/products).
- Create separate controllers or projects for each API version to maintain code separation and avoid conflicts.
- Upgrade the version whenever a contract or logic change occurs.