Questions tagged [api-versioning]
189 questions
3
votes
1 answer
Swagger UI Express with API Versioning
I am using swagger-ui-express and swagger-jsdoc for API Documentation of my node app. The point here is that I have two versions of API in my App and I want to document both of them. I have seen that in .NET Core there is an option available to…

Manoj Sethi
- 1,898
- 8
- 26
- 56
3
votes
1 answer
Routing incoming requests in AppEngine to different versions
I have an Android App, and a backend for that app deployed in Google AppEngine.
I am looking for something like an API gateway inside the google cloud which can route the app to a specific backend version, depending on the client version (e.g.…

stschmitt
- 175
- 1
- 9
3
votes
1 answer
API versioning and authentication using Laravel
I am building a service with Laravel framework. I will be generating an API to be consumed by an Android and iOS app. At the same time, I will be making internal API calls to update my HTML/Blade views (or at a future time to update my SPA front…

christostsang
- 1,701
- 3
- 27
- 46
3
votes
3 answers
Web-API Versioning not working with Default version
I created one web API application with versioning. I am going to use Microsoft.AspNet.WebApi.Versioning package to do that.
Webapi configuration:
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
…

Akhil
- 1,918
- 5
- 30
- 74
3
votes
1 answer
Microsoft.AspNetCore.Mvc.Versioning how to default to the "latest" version
Other than changing startup.cs whenever a new version is built,
services.AddApiVersioning(config =>
{
config.DefaultApiVersion = new ApiVersion(1, 0);
});
is there a way of specifying that the "default version" is the latest version, without…

Binary Worrier
- 50,774
- 20
- 136
- 184
3
votes
1 answer
API versioning and reusing existing implementation on version updates
We am using aspnet-api-version for version our API's. While the library allows interleaving multiple version implementation on one controller.
[ApiVersion( "2.0" )]
[ApiVersion( "3.0" )]
[RoutePrefix( "api/helloworld" )]
public class…

Chandermani
- 42,589
- 12
- 85
- 88
3
votes
1 answer
ASP.net Web Api Versioning
I have ASP.net Web Api project and I decided that it was time to support versioning. I am using official Microsoft Nuget to support versioning (more info here), and I decided to version by namespace (as exampled here).
Unfortunately I cannot get…

hyperN
- 2,674
- 9
- 54
- 92
3
votes
0 answers
How to manage code base while versioning in web api?
I need to expose a new version of an API method as I cannot afford to have breaking changes to the existing one.
Existing : http://www.test.com/api/v1/customer/{id}
New : http://www.test.com/api/v2/customer/{id}
I have read about the different…

Jose Francis
- 950
- 13
- 28
3
votes
3 answers
Generate URL of a versioned API action with IUrlHelper
In my ASP.NET Core project I'm using aspnet-api-versioning like so:
[ApiVersion("1.0")]
[Route("api/v{version:apiVersion}/users")]
[Authorize]
public class UserController : Controller
{
[HttpGet, MapToApiVersion("1.0")]
public async…

erikbozic
- 1,605
- 1
- 16
- 21
3
votes
1 answer
API Versioning with AWS API Gateway
I am having trouble implementing a viable versioning scenario with API Gateway + Lambda. My requirement is to have major versioning at the API level but then minor versioning at the service level. My environments are also spread across accounts so…

Ryan Fisch
- 2,614
- 5
- 36
- 57
3
votes
0 answers
How to support API versioning with Slim framework
We've been using Slim framework to create REST APIs for a mobile app, and right now the index.php resides inside a folder v1/ inside the web root. This index.php contains all the APIs.
However, with newer versions of mobile app requiring some…

Ouroboros
- 1,432
- 1
- 19
- 41
2
votes
2 answers
Spring Boot versioning - should versioning apply to all endpoints even only one has changed
I have a spring boot rest API with following endpoints:
myapi/v1/auth
myapi/v1/car
myapi/v1/part
myapi/v1/history
Each of these (except authentication) have 4 controller methods representing GET, POST, PUT, DELETE CRUD operations.
Let's say I have a…

pixel
- 9,653
- 16
- 82
- 149
2
votes
1 answer
ASP.NET Core API versioning with major.minor but only major in the path
Is there any way to achieve the following:
controllers are versioned with ApiVersionAttribute using major.minor pattern, so 1.1, 2.3 and so on
the corresponding routes contain only the major part in the path, for example /v1/WeatherForecast
I have…

aguyngueran
- 1,301
- 10
- 23
2
votes
2 answers
Handling code duplication in API versioning .NET Core
I'm currently trying to support API versioning using .NET Core API.
I have read many articles about the matter , Couldn't find a really good code examples for it.
Everyone is posting about the controller and how to add API version to each end point…

Jack
- 107
- 1
- 9
2
votes
1 answer
Supporting multiple versions of models for different REST API versions
Are there any best practices for the implementation of API versioning? I'm interested in the following points:
Controller, service - e.g. do we use a different controller class for each version of the API? Does a newer controller class inherit the…

user1180636
- 43
- 6