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.
Перейти к файлу
Rick Anderson 3fc071913d use IsDevelopment 2024-04-19 09:11:04 -07:00
.config Update sign tool 2023-12-07 11:46:45 -08:00
.devcontainer Update .NET version for tools 2023-12-07 11:46:45 -08:00
.github Remove Dependabot from release/5.x; no longer necessary 2023-12-08 11:34:36 -08:00
.vscode Update VSCode settings 2023-09-15 08:30:31 -07:00
build Update .NET SDK in CI build 2023-12-07 11:46:45 -08:00
docs Remove CLA content and actions which are handled by the DNF 2022-05-07 19:30:28 -07:00
examples use IsDevelopment 2024-04-19 09:11:04 -07:00
src Bump versions and update release notes 2024-03-26 10:31:15 -07:00
.editorconfig More code analysis clean up 2023-12-07 11:46:45 -08:00
.gitattributes The beginning of Project Asp. 'master' is now 'main'. 2022-03-18 08:40:27 -07:00
.gitignore Ignore global.json; sometimes used for .NET SDK previews 2022-10-03 14:19:15 -07:00
.vsconfig Add Visual Studio configuration 2022-03-21 22:51:51 -07:00
LICENSE.txt The beginning of Project Asp. 'master' is now 'main'. 2022-03-18 08:40:27 -07:00
README.md Move .net core packages to the top. 2024-01-09 11:20:17 -08:00
asp.sln Fix NETFX reference assemblies 2022-12-06 16:54:33 -08:00
azure-pipelines.yml Update branches that trigger builds 2023-12-07 11:46:45 -08:00
logo.svg The beginning of Project Asp. 'master' is now 'main'. 2022-03-18 08:40:27 -07:00
nuget.config The beginning of Project Asp. 'master' is now 'main'. 2022-03-18 08:40:27 -07:00

README.md

.NET Foundation MIT License Build Status

ASP.NET API Versioning

📣 Check out the announcement regarding upcoming changes

The "Asp" project, more formally known as ASP.NET API Versioning, gives you a powerful, but easy-to-use method for adding API versioning semantics to your new and existing REST services built with ASP.NET. The API versioning extensions define simple metadata attributes and conventions that you use to describe which API versions are implemented by your services. You don't need to learn any new routing concepts or change the way you implement your services in ASP.NET today.

The default API versioning configuration is compliant with the versioning semantics outlined by the Microsoft REST Guidelines. There are also a number of customization and extension points available to support transitioning services that may not have supported API versioning in the past or supported API versioning with semantics that are different from the Microsoft REST versioning guidelines.

The supported flavors of ASP.NET are:

  • ASP.NET Core

    Adds API versioning to your ASP.NET Core Minimal API applications

    NuGet Package NuGet Downloads Quick Start Examples

  • ASP.NET Core MVC

    Adds API versioning to your ASP.NET Core MVC (Core) applications

    NuGet Package NuGet Downloads Quick Start Examples

  • ASP.NET Core and OData

    Adds API versioning to your ASP.NET Core applications using OData v4.0

    NuGet Package NuGet Downloads Quick Start Examples

  • ASP.NET Web API

    Adds API versioning to your Web API applications

    NuGet Package NuGet Downloads Quick Start Examples

  • ASP.NET Web API and OData

    Adds API versioning to your Web API applications using OData v4.0

    NuGet Package NuGet Downloads Quick Start Examples

This is also the home of the ASP.NET API versioning API explorers that you can use to easily document your REST APIs with OpenAPI:

  • ASP.NET Core Versioned API Explorer

    Adds additional API explorer support to your ASP.NET Core applications

    NuGet Package NuGet Downloads Quick Start Examples

  • ASP.NET Core with OData API Explorer

    Adds additional API explorer support to your ASP.NET Core applications using OData v4.0

    NuGet Package NuGet Downloads Quick Start Examples

  • ASP.NET Web API Versioned API Explorer

    Replaces the default API explorer in your Web API applications

    NuGet Package NuGet Downloads Quick Start Examples

  • ASP.NET Web API with OData API Explorer

    Adds an API explorer to your Web API applications using OData v4.0

    NuGet Package NuGet Downloads Quick Start Examples

The client-side libraries make it simple to create API version-aware HTTP clients.

  • HTTP Client API Versioning Extensions

    Adds API versioning support to HTTP clients

    NuGet Package NuGet Downloads Quick Start

Documentation

You can find additional examples, documentation, and getting started instructions in the wiki.

Discussion

Have a general question, suggestion, or other feedback? Check out how you can contribute.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

License

This project is licensed under the MIT license.

.NET Foundation

This project is supported by the .NET Foundation.


If you are an existing user, please makes sure you review the release notes between all major and minor package releases.