Questions tagged [api-versioning]

189 questions
1
vote
1 answer

How to introduce change in web api response payload structure without breaking existing integration

In one of our existing .net core web api (REST) end point, one of its property value in response payload is email address which will be changed to alphanumeric id shortly. This change in response payload will break existing integration. This…
1
vote
1 answer

Azure API Management - Versioning path schema duplicates version in url

I'm trying to apply api management version sets to query a .Netcore 3.1 web api which has two versions. I have chosen the path schema on the version set, which appends the version identifier to the url. In this case /v1: The thing is that in my api…
1
vote
1 answer

Why does Swagger need a version requestparameter, when the API version is in the URL?

I have implemented Swagger using Swashbuckle and MultipleApiVersions and it works like a charm. But I find it a bit ugly that the current setup requires a api-version request parameter. I assumed the version could be determined by the url…
1
vote
1 answer

ASP.NET Web Api 2 Controller versioning. Route not found

I have ASP.NET Web Api 2 application which already has controllers. Now, we have new controllers that need to be added but with prefix (v10) /api/products/1 // Old controller /api/v1/proucts/1 // the new controller I tried to…
Samy Sammour
  • 2,298
  • 2
  • 31
  • 66
1
vote
2 answers

I cant show the API versions in response header with ApiVersioning .net Core

I follow the instruction REST API versioning with ASP.NET Core to show My API version in the response header. This is my Configuration code: public void ConfigureServices(IServiceCollection services) { services.AddControllers(); …
Pooria
  • 157
  • 10
1
vote
1 answer

How to declare permission in config.xml into AndroidManifest.xml?

I declared the permission in config.xml but the AndroidManifest.xml is empty after phonegap build compiling. It is not be listed in the compiling log. How should I modify my config.xml? The codes of my config.xml about permission…
1
vote
1 answer

Read multiple properties file in one go using Spring Boot?

I went through the link: How to pass a Map with application.properties and other related links multiple times, but still its not working. I'm using Spring Boot and Spring REST example. Link Question: How to by default execute the…
PAA
  • 1
  • 46
  • 174
  • 282
1
vote
2 answers

How to by default execute the latest version of endpoint in Spring Boot REST?

I'm developing Spring Boot v2.2.2.RELEASE and API versioning using Custom Header. By default I want latest version of endpoint to be executed. Here in below code its X-API-VERSION=2. Before executing the endpoint I need to check mapping and then set…
PAA
  • 1
  • 46
  • 174
  • 282
1
vote
0 answers

How to reuse business validation across various versions of the model

I have an ASP.Net Core WebAPI with multiple versions and having corresponding versions of the service layer injected. Each version has its own model version. The V1 Controller, injects V1 service layer, and uses V1 model, the service layer does the…
1
vote
1 answer

Django REST Framework URLPathVersioning not working

I followed the guide here to add versioning to our API. This is what the urls.py looks like: from django.conf.urls import url from django.contrib import admin from django.urls import path from api import views urlpatterns = [ url( …
ritratt
  • 1,703
  • 4
  • 25
  • 45
1
vote
2 answers

Specify API version for all WEB API controllers

I am building an API using Web API .NET 2, created a BaseController class which all other controllers inherit. I would like to apply API versioning using [ApiVersion()] attribute, however I don't want to decorate each controller class with same…
Vitalii Kalinin
  • 117
  • 1
  • 1
  • 11
1
vote
1 answer

swagger add document and operation for a generic controller

i am working on a webapi with plugins. I want to update the swagger documentation when a plugin is added. I can handle this when i don't use version. All methods are added to the swagger documentation. but when the api has apiversion turned on, the…
Frans
  • 131
  • 1
  • 10
1
vote
2 answers

How change Android Studio project api version to 23

I use Android Studio3.2. I create a project use api version 28. Now I need change api version to 23. So I edit build.gradle: apply plugin: 'com.android.application' android { compileSdkVersion 23 defaultConfig { applicationId…
Getname
  • 78
  • 8
1
vote
0 answers

How to handle version conflicts with my Java application using SPI extensions

I am writing a plugin API for a Java application, the idea being that eventually third parties will provide their own plugin extensions for the application and all the user needs to do is place the plugin jar into a plugins directory of the…
Mike
  • 33
  • 1
  • 3
1
vote
1 answer

API versioning in Symfony

I've been trying to find a solution to versioning in Symfony. What would be the best way to do API versioning in Symfony. In Laravel this is pretty simple, see here You just separate everything in different folders like V1/V2... and you create…
FosAvance
  • 2,363
  • 9
  • 36
  • 52