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.
``` /usr/share/dotnet/sdk/5.0.408/NuGet.targets(131,5): error : Failed to retrieve information about 'Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer' from remote source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.mvc.versioning.apiexplorer/index.json'. [/builds/dsi/sipp/sipp-apps/api/src/SIPPApi.sln] /usr/share/dotnet/sdk/5.0.408/NuGet.targets(131,5): error : The content at 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.mvc.versioning.apiexplorer/index.json' is not a valid JSON object. [/builds/dsi/sipp/sipp-apps/api/src/SIPPApi.sln] /usr/share/dotnet/sdk/5.0.408/NuGet.targets(131,5):...
Asp.Versioning.Mvc.ApiExplorer:6.0.0-preview.3 netcore:net6 After the `UseExceptionHandler` is enabled, an "NullReferenceException" is thrown when the interface exception occurs. Program.cs: ``` using Asp.Versioning; var builder = WebApplication.CreateBuilder(args); builder.Services.AddControllers(); builder.Services.AddExceptionHandler(options => options.ExceptionHandler= async(http)=> {...
Hi. When a property is ignored/excluded from the EDM the following exception is thrown when generating swagger.json: `InvalidOperationException: Can't use schemaId "$B" for type "$A.B". The same schemaId is already...
Framework: netcoreapp3.1 I'm having an issue with OData API versioning. When I don't use ODataQueryOptions in the action method, I received that the API version is not supported. Here example...
I used Microsoft.AspNetCore.OData.Versioning.ApiExplorer nuget. The question is, how to correct mark controller, in order to **route** will valid? See the example, for more details: ``` public class OrderModelConfiguration : IModelConfiguration...
Hi, I have been playing around with Minimal APIs in .net 6 using the pre-release version of ASP.Versioning https://github.com/trouaux/minimal-api-playground In this repo I have a small sample project where I...
For minimal apis, i miss methods to add descriptions ```csharp app .DefineApi("People") .HasMapping(api => { api.MapGet("/api/v{version:apiVersion}/people/{id:int}", (int id) => "Some response") .Produces(response => response.Body()) .Produces(404) .HasApiVersion(1.0) ; }); ``` Produces:...
Hi. Thank you for your continued support. I wanted to test out the new 6.0 package, but I'm getting the following error when trying to add the NuGet package to...
The implementation could be made more generic by using endpoint metadata directly instead of the ActionDescriptor to stash the API information. Instead of doing [SetProperty](https://github.com/microsoft/aspnet-api-versioning/blob/e16b579d240574053ebd8e7ee38c8686beaee174/src/Microsoft.AspNetCore.Mvc.Versioning/Versioning/Conventions/ActionApiVersionConventionBuilderBase.cs#L60) the data could be stored...
Will support for odata 8 be included in the 5.0 release ?