API versioning
So what we are going to learn about in this section is a few things about versioning ASP.NET Core Web API. We will start by talking about what API versioning is and some versioning strategies in APIs, then we will dive into some code and integrate API versioning with OpenAPI so you can see the versioned APIs in your Swagger UI.
Now let's start by defining API versioning.
What is API versioning?
In a nutshell, API versioning is how you want to deal with API changes over time. Most of us backend developers concentrate on building and deploying a web service because that is our job. They're usually the written tasks that we have to implement in a typical project. But sometimes we forget that we're going to have to support the web service for the next 5 to 10 years, or the developers replacing us will.
Once the web service is deployed and developers have coded against the API, there will be users who are relying on the APIs that we have built....