PreviousNext

RESTful API versioning with ASP.NET Core

by bill-s, 2020-09-10T01:00:20.105Z

This blog post will discuss about the commonly used API Versioning strategies and how to implement them in ASP.NET Core Web API. For the demo purposes I am creating an ASP.NET Core WEB API project using dotnet new webapi command. To implement versioning we need to add reference of the Microsoft.AspNetCore.Mvc.Versioning nuget package, which we can do by running ` dotnet add package Microsoft.AspNetCore.Mvc.Versioning` command. Once the package reference is added, in the ConfigureServices method, Versioning support can be added using AddApiVersioning(); method, like this.

Read More