aspnet-api-versioning
aspnet-api-versioning copied to clipboard
Provides a set of libraries which add service API versioning to ASP.NET Web API, OData with ASP.NET Web API, and ASP.NET Core.
Hi. When I try to get swagger.json for an OData API which exposes only the default version, the following exception occurs: ``` System.NullReferenceException: Object reference not set to an instance...
I'm cannot figure out how to make Odata Batching to work when using API Versioing. I cannot tell if I'm missing configuration, or whether the issue is with Odata or...
Hi I want to use `/v1/orders` or `/v2/orders` pattern using api versioning Well, I configured like: ``` var builder = WebApplication.CreateBuilder(args); ApiVersion apiV1 = new ApiVersion(1); ApiVersion apiV2 = new...
Rather than copy/paste a whole bunch of code in our API we are trying to add 2 `[MapToApiVersion()]` attributes and then get the version number from the request `HttpContext.GetRequestedApiVersion()`. This...
I'm not sure if this is a bug in Versioning, in Swagger, or in my routes. I'm using ASP.NET WebApi and Versioning version 4.1.1. My controller looks like this (I've...
Fixes issues reported in 6.0 Preview 3: - #823 - #830 - #837 - #839
I've noticed that with Pre-release 2, the ProducesDefaultResponseType doesn't seem to behave the way it did previously. I'm now getting this in SwaggerUI: Previously, it looked like:
My controller has 3 methods of which 2 have an ApiVersionAttribute specified. When my custom IApiVersionSelector is invoked, I expect the ApiVersionModel to have SupportedApiVersions and ImplementedApiVersions empty (or contain...
Hello, ApiVersionCollator groups actions by controller name and adds versioning metadata, however it fails to filter the actions list to those that are actually defined as having `ApiBehavior` (as defined...