![]() The ReportAPIVersions flag is optional, but it can be useful. New MediaTypeApiVersionReader("x-api-version")) New HeaderApiVersionReader("x-api-version"), Opt.ApiVersionReader = ApiVersionReader.Combine(new UrlSegmentApiVersionReader(), Opt.AssumeDefaultVersionWhenUnspecified = true The first thing you have to do is go to your program.cs file and add the following code to the services section: (opt => You also have to install the following package: Install-Package NET 6, please make sure you have that installed on your computer. Sounds good? Let’s see how you can achieve just that in your. This gives us the option to serve the data to clients that we would like, but our customers are also able to wait and update their applications when they got time for it in their systems. The primary reason we would offer API versioning is that the same method is able to be called in the same way, but with a different version number in the URL. We could make use of API versioning and just give the customer the option to change the version parameter in the URL when they are ready for it.We could add a new method (new URL) in our API that would serve the new model for the endpoint and ask the customer to update their app accordingly. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |