I'm working with ASP.NET core web API project, where I have 8 controllers, multiple DTOs being used for request and response and mappers to map models(also used in the web app) with DTOs.
Recently, we have started with versioning, for that, we're referring to the best practices: API-Version-Conventions. Here is the project structure we have so far:
MyProject └ API ├─ v1 │ └ Controllers | L Models ├─ v2 │ └ Controllers | L Models └─ v2_5 └ Controllers L Models
But in this case, we need to copy the same code again and again, even if the release is minor. So is this good practice or is there any other way around?