Questions tagged [api-versioning]

189 questions
0
votes
1 answer

API versioning of Entities with children

I'm migrating some API endpoints to a more concise way. But I'm having some issues about how to handle nested objects. For example: I have an object Foo and a Bar. Foo v1.0 { "field_one": "String", "field_two": "String" } Foo v1.1 { …
augustoccesar
  • 658
  • 9
  • 30
0
votes
0 answers

Swagger fails when generating "Aspnet-api-versioning"

I am trying to get Swagger documentation working for my ASP.NET Core application using Microsoft's aspnet-api-versioning and am following the instructions from here which seem to be out of date as I had to change things to make them compile. However…
TheEdge
  • 9,291
  • 15
  • 67
  • 135
0
votes
1 answer

Versioned API with Swagger not detecting API operations

I implemented an API and integrated it with Swagger. Startup ConfigureServices: services .AddMvcCore() .AddApiExplorer(); services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new Info { Title = "API", Version = "v1" …
Ropstah
  • 17,538
  • 24
  • 120
  • 194
0
votes
1 answer

REST API GROUP versioning

Does anybody know what is Group versioning in REST API? I found the link below where it explains it, but i don't understand how to use it. I am looking for: How to configure group version across multiple endpoints ? Can someone provide practical…
dev
  • 21
  • 2
0
votes
1 answer

versioning api using url from WebApiConfig

config.Routes.MapHttpRoute( name: "Version1", routeTemplate: "api/v1/{controller}/{id}", defaults: new { id = RouteParameter.Optional , controllers = "studentV1" } ); my question is, if i…
0
votes
1 answer

How to use higher version for web api controller

I am following below: https://www.hanselman.com/blog/ASPNETCoreRESTfulWebAPIVersioningMadeEasy.aspx Is it possible to have directly higher version for a web api controller. like: ApiVersion("2.05")] …
0
votes
1 answer

Multiple actions matched. The following actions matched route data and had all constraints satisfied

I am trying to design a API versioning, but I am getting following error Multiple actions matched. The following actions matched route data and had all constraints satisfied I didn't want to duplicate all controller methods instead I just…
Mert
  • 6,432
  • 6
  • 32
  • 68
0
votes
1 answer

Which to use or two set of results on Azure APIVersion

Scenario: To List WebApps under a resourcegroup name. Attempt Approach : $WebAppApiVersion = "2015-08-01" $MyResourceGroup = 'gurustorageRG' Function saymyWebApps($ResourceGroupName) { Find-AzureRmResource -ResourceGroupName $ResourceGroupName…
H Bala
  • 1,271
  • 2
  • 14
  • 28
0
votes
1 answer

azure api versioning x-ms-version api-version comparison

I see that in the Microsft managed REST APIs exposed in Azure there are two ways to do versioning a) x-ms-version in header b) api-version in query string I wanted to understand what is the decision behind the selection between the two. I was…
shaswata pal
  • 389
  • 3
  • 15
0
votes
1 answer

Optional parameter causes null exception in Swashbuckle.AspNetCore

I have an asp.net core 2.0 api controller action with an optional (and nullable) parameter. Swashbuckle.AspNetCore 1.0.0 generation of Swagger documentation fails when this parameter is present in the method signature, but succeeds if I remove it…
Michael
  • 1,272
  • 1
  • 9
  • 18
0
votes
1 answer

How to get MvcOptions.ReturnHttpNotAcceptable to work together with ApiVersioning

I'd like to return HTTP 406 if the version requested is not supported. So I have: services.AddApiVersioning(options => { options.ReportApiVersions = true; options.AssumeDefaultVersionWhenUnspecified = false; options.ApiVersionReader = new…
Frank Fajardo
  • 7,034
  • 1
  • 29
  • 47
0
votes
1 answer

Rails API versioning and forum_url

I try to add the location header to my versioned API. NoMethodError (undefined method `forum_url' for #):app/controllers/v1/forums_controller.rb:24:in `create' How can I override the render location: forum…
user7330717
0
votes
0 answers

What should I version while doing an API versioning in Django

Currently, I am doing an API versioning for our project. We have 10 apps and 45 API endpoints. Each app has models, tasks, utils, constants, serializers, views and urls files. Now, I have created an apis app which contains version folder e.g v1, v2…
Rohan
  • 477
  • 7
  • 22
0
votes
1 answer

API versioning in ASP.NET Web API

I have an ASP.NET Web API I wrote and have published. Now that its out there we are looking at doing some improvements, and these improvements involve changes to certain calls which means we need to version to keep existing clients working. I have…
James Scott
  • 990
  • 2
  • 10
  • 29
0
votes
0 answers

"Setting api_version is deprecated, only v2 will be supported" message

After running "rails console", I got the following message: setting api_version is deprecated and will be removed shortly, only v2 is supported Forgive my ignorance, but what exactly is being deprecated?
Joe Morano
  • 1,715
  • 10
  • 50
  • 114
1 2 3
12
13