Questions tagged [api-versioning]

189 questions
2
votes
2 answers

What is the best way to maintain previous versions of an API in Azure?

My goal is to have previous versions be immutable: they should not change in definition and function. The API is build with ASP.NET Core based on .NET 4.7.2(cause of dependencies) and hosted as Azure App Service. Preferably, I don't want to clutter…
2
votes
2 answers

asp net core Middleware that needs apiversioning version

I have an MVC net core 2.2 application with API Versioning. I only want the middleware to run for v2 of the api or greater. The middleware class I have written uses the IApiVersionReader.Read(), however that doesn't seem to be populated until after…
David C
  • 2,766
  • 6
  • 29
  • 44
2
votes
2 answers

Web API 2 versioning with Microsoft.AspNet.WebApi.Versioning

I am using ASP.NET Versioning Library, I have followed steps to add this library to a very basic ASP.NET Web API 2 project, Here are the contents of my files: Global.asax file: public class WebApiApplication : System.Web.HttpApplication { …
Rathma
  • 1,196
  • 2
  • 33
  • 65
2
votes
3 answers

How to retrieve list of all implemented versions of my api?

I'm using aspnet-api-versioning in my WebApi project and it works fine. Versions are not hardcoded, they are retrieved from the namespaces. Now I would like to retrieve the list of already implemented versions. I want to create some endpoint (let's…
2
votes
0 answers

How to fix my API versioning code in my app.js file?

I am new to node.js and trying to use express-routes-versioning module in my app.js file and having problem in route version handling.Please help me with my code. Below is my code please have a look.. ` var versionRoutes =…
2
votes
3 answers

Core 2.1 APIVersioning Action ambiguity

I have successfully set up API Versioning in my Core 2.1 API project. http://localhost:8088/api/Camps/ATL2016/speakers?api-version=x.x Versions 1.1 and 2.0 work but 1.0 fails with an ambiguity on the Get(string, bool) Actions. ASP.NET Core Web…
Joe
  • 4,143
  • 8
  • 37
  • 65
2
votes
0 answers

symfony4 FOS Rest bundle verisoning is not working

I have tried the symfony4 with fos bundle rest api versioning and it url routing is working , but api versioning is not working. Please find my below code and i have missed out anything. My Url…
Elangovan
  • 3,469
  • 4
  • 31
  • 38
2
votes
1 answer

Double slash in context path in Websphere Application Server

I would like to know if it is possible to put a context path like this when deploying a WAR to Websphere Application Server: /api/v3.1, and another one with the same context path but for another version of the API to be launched in the same WAS. In…
Paolo Carrasco
  • 59
  • 1
  • 1
  • 10
2
votes
2 answers

Versioning of coupled RESTful APIs with HATEOAS

We have a ProductsAPI to browse products available at our site which is consumed by our mobile Apps (Android & iOS). Following is the basic design: URL: /api/products/ Response: [ { "id" : 123, "name" : "abc", …
ctor
  • 805
  • 1
  • 10
  • 26
2
votes
1 answer

Best practice to retire an defined Thrift API?

Just curious about what will happen in the below scenario? An defined API is removed in the latest thrift service definition; The implementation on server end upgrades to latest definition (i.e., doesn’t have implementation about the removed API…
QRush
  • 77
  • 5
2
votes
4 answers

API versioning in .NET application

I need some clarification on API versioning in .Net Core framework. My client want the version to be handled in Router level. Like [Route("1/[controller]")] public class SampleController : Controller { [HttpGet("version")] public…
Gugan
  • 1,625
  • 2
  • 27
  • 65
2
votes
2 answers

Can you simultaneously use two identically named types?

Suppose I have version 1 of a strong-named assembly Interfaces.dll, which contains an IPlugin interface: public interface IPlugin { void InstallSelf(IPluginManager pluginManager); } A number of plugins have been implemented and everything runs…
Philip C
  • 1,819
  • 28
  • 50
2
votes
0 answers

API backend versioning approach

We are using django rest framework for creation of apis(which are being consumed by mobile devices). We get the version from request.version in each requested views. All these apis are being used in scenario where requirement changes a lot over…
Neo
  • 5,070
  • 10
  • 46
  • 65
2
votes
1 answer

API versioning for active models

I am building a application in which i have a model user, In the first version of the application there will be no mobile number column for the users in the later version it must be present, is there any way to add versioning to models so that…
Bala Karthik
  • 1,353
  • 2
  • 17
  • 26
1
vote
1 answer

Asp.Versioning.Http AmbiguousMatchException: The request matched multiple endpoints on controllers

I am trying to achieve header based versioning on my controllers with Asp.Versioning.Http package version 6.4.0 it is supposed to be super simple here however i get AmbiguousMatchException: The request matched multiple endpoints exception Here is my…