Questions tagged [api-versioning]

189 questions
1
vote
0 answers

How do I check for availability of a symbol, rather than OS version, in Swift?

I have code of the form if #available(iOS 10.2, *) { device = AVCaptureDeviceType.builtInDualCamera } else { device = AVCaptureDeviceType.builtInDuoCamera } Is if #available(AVCaptureDeviceType.builtInDualCamera) { ... possible? The latter…
Kartick Vaddadi
  • 4,818
  • 6
  • 39
  • 55
1
vote
2 answers

What HTTP status codes to return on wrong API versions?

I'm designing a simple versioned RESTful API. The version will be specified as part of the media type in the Accept header. I wonder what are the proper HTTP status codes for these cases: version not yet supported, e.g. Accept: application/json;…
planetp
  • 14,248
  • 20
  • 86
  • 160
1
vote
2 answers

Rails API versioning - Invoke a controller action if it exists?

Right now I have two API namespaces, Api::V1 and Api::V2 I plan on implementing V2 slowly over time rather than all in one shot. However, since part of it exists, I'd like it if the client could send all HTTP requests to the V2 URL and let the…
nick
  • 241
  • 2
  • 13
1
vote
1 answer

Flask Rest API Versioning - Returned URLs

The FooBar Api is Published Let's say there's a team of developers working on an API, called the FooBar api with a few endpoints: GET /foo # returns {'bar': '/bar', 'data': 'foo'} GET /bar # returns {'data': 'hello world!'} Now, let's say…
Phillip Martin
  • 1,910
  • 15
  • 30
1
vote
0 answers

Mobile app and web service distribution advice

My team and I are working on a mobile app. A feature of this mobile app is to have the ability to register their device with multiple organizations who are our clients. We distribute to our clients multiple applications and web apps, one of them is…
Benji
  • 489
  • 2
  • 4
  • 14
1
vote
2 answers

Single Sign On - API versioning and sharing data transfer objects

I implemented SSO for my web applications with following architecture These are basic flows: Now conceptually it seems OK to me but what bothers me is the fact that all applications depend on SSO web api. if something changes in SSO Web Api, all…
Pavle Gartner
  • 659
  • 1
  • 7
  • 21
1
vote
1 answer

How to solve obstacles related to API version

I am having a restfull service and there are more than 20 clients thats is using this service. @Path("/provider") public class Provider{ @Path("/simpleprovider") @GET public String getProvider(){ return "Simple Provider"; } } Now i have decided to…
Ali
  • 557
  • 1
  • 9
  • 30
1
vote
1 answer

Devise token auth and versioning

I have a problem implementing the mount_devise_token_auth_for with api versions. Let's say: scope module: :v1, constraints: ApiConstraints.new(version: 1) do mount_devise_token_auth_for 'User', at: '/auth', skip: [ ], controllers: { …
Anton
  • 540
  • 3
  • 13
1
vote
1 answer

Rails API versioning

I am trying to implement api versioning the Railscasts #350 way (no gem). Is there a way to create only updated resources in new version and not entire set of controllers and views(jbuilder) with fallback to latest supporting version…
Anton
  • 540
  • 3
  • 13
0
votes
0 answers

Api versioning through header having same header name

How to give multiple values to a controller for api versioning through header having same header name @PostMapping(value = URL.ADD, headers = {"X-API-VERSION=1.0", "X-API-VERSION=2.0"}) public int add(@RequestBody ProductVariant productVariant) { …
0
votes
2 answers

What does UseApiBehavior property do in the ApiVersioning library?

I am trying to enable swagger in my application, but as I am retrofitting it to legacy applications I would like to know exactly what changes I am making. On the internet it suggests adding the following to make the Swagger endpoints…
JKennedy
  • 18,150
  • 17
  • 114
  • 198
0
votes
1 answer

Versioning with API Management and ASP.NET Core

What's the difference between these two? I know how to do versioning in ASP.NET Core and recently I found out about the version in API Management and wonder about how to implement it or choose one over the other. I search API Management docs and…
bkan
  • 1
0
votes
1 answer

API Versioning .Net Core > Incorrect Supported/Deprecated Versions Reported Ignoring MapToApiVersion

I have a controller class that supports operations for versions 1 and 2, as shown below: [ApiVersion("1.0")] [ApiVersion("2.0")] [Route("api/[controller]")] [ApiController] public class TestController : ControllerBase { …
0
votes
1 answer

Why is my LinkedIn adAnalytics API query returning a 400 error with an 'ILLEGAL_ARGUMENT' message?

Trying to do query for new API versioning of Linkedin API, especially with adAnalytics. Here is my…
0
votes
1 answer

"CL_TARGET_OPENCL_VERSION is not defined" - why should I get this?

With recent CUDA versions - 12.1 for sure, probably 12.0 as well - I get a warning message when compiling against the OpenCL headers: #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)") Indeed, I…
einpoklum
  • 118,144
  • 57
  • 340
  • 684