Microsoft.AspNetCore.OpenApi
9.0.0-rc.2.24474.3
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.AspNetCore.OpenApi --version 9.0.0-rc.2.24474.3
NuGet\Install-Package Microsoft.AspNetCore.OpenApi -Version 9.0.0-rc.2.24474.3
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.0-rc.2.24474.3" />
paket add Microsoft.AspNetCore.OpenApi --version 9.0.0-rc.2.24474.3
#r "nuget: Microsoft.AspNetCore.OpenApi, 9.0.0-rc.2.24474.3"
// Install Microsoft.AspNetCore.OpenApi as a Cake Addin #addin nuget:?package=Microsoft.AspNetCore.OpenApi&version=9.0.0-rc.2.24474.3&prerelease // Install Microsoft.AspNetCore.OpenApi as a Cake Tool #tool nuget:?package=Microsoft.AspNetCore.OpenApi&version=9.0.0-rc.2.24474.3&prerelease
About
Microsoft.AspNetCore.OpenApi is a NuGet package that provides built-in support for generating OpenAPI documents from minimal or controller-based APIs in ASP.NET Core.
Key Features
- Supports viewing generated OpenAPI documents at runtime via a parameterized endpoint (
/openapi/{documentName}.json
) - Supports generating an OpenAPI document at build-time
- Supports customizing the generated document via document transformers
How to Use
To start using Microsoft.AspNetCore.OpenApi in your ASP.NET Core application, follow these steps:
Installation
dotnet add package Microsoft.AspNetCore.OpenApi
Configuration
In your Program.cs file, register the services provided by this package in the DI container and map the provided OpenAPI document endpoint in the application.
var builder = WebApplication.CreateBuilder();
// Registers the required services
builder.Services.AddOpenApi();
var app = builder.Build();
// Adds the /openapi/{documentName}.json endpoint to the application
app.MapOpenApi();
app.Run();
For more information on configuring and using Microsoft.AspNetCore.OpenApi, refer to the official documentation.
Main Types
The main types provided by this library are:
OpenApiOptions
: Options for configuring OpenAPI document generation.IDocumentTransformer
: Transformer that modifies the OpenAPI document generated by the library.
Feedback & Contributing
Microsoft.AspNetCore.OpenApi is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
-
net9.0
- Microsoft.OpenApi (>= 1.6.17)
NuGet packages (335)
Showing the top 5 NuGet packages that depend on Microsoft.AspNetCore.OpenApi:
Package | Downloads |
---|---|
Rystem.Api.Server
Rystem.Api helps you to integrate Api Server and Automated Client for Aspect-Oriented programming. |
|
Indice.AspNetCore
Package Description |
|
devprime.stack.web
DevPrime Web |
|
IntelliTect.Coalesce
Core framework library for IntelliTect.Coalesce |
|
IntelliTect.Coalesce.CodeGeneration
Core code generation library for IntelliTect.Coalesce |
GitHub repositories (127)
Showing the top 5 popular GitHub repositories that depend on Microsoft.AspNetCore.OpenApi:
Repository | Stars |
---|---|
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
|
|
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
|
|
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
|
|
RicoSuter/NSwag
The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
|
|
dotnet/eShop
A reference .NET application implementing an eCommerce site
|
Version | Downloads | Last updated |
---|---|---|
9.0.0 | 90,745 | 11/12/2024 |
9.0.0-rc.2.24474.3 | 34,834 | 10/8/2024 |
9.0.0-rc.1.24452.1 | 22,944 | 9/10/2024 |
9.0.0-preview.7.24406.2 | 10,104 | 8/13/2024 |
9.0.0-preview.6.24328.4 | 8,089 | 7/9/2024 |
9.0.0-preview.5.24306.11 | 9,813 | 6/11/2024 |
9.0.0-preview.4.24267.6 | 3,887 | 5/21/2024 |
9.0.0-preview.3.24172.13 | 10,241 | 4/11/2024 |
9.0.0-preview.2.24128.4 | 4,969 | 3/12/2024 |
9.0.0-preview.1.24081.5 | 2,474 | 2/13/2024 |
8.0.11 | 76,178 | 11/12/2024 |
8.0.10 | 1,252,491 | 10/8/2024 |
8.0.8 | 2,168,657 | 8/13/2024 |
8.0.7 | 1,906,234 | 7/9/2024 |
8.0.6 | 2,793,061 | 5/28/2024 |
8.0.5 | 947,994 | 5/14/2024 |
8.0.4 | 2,081,826 | 4/9/2024 |
8.0.3 | 2,212,803 | 3/12/2024 |
8.0.2 | 2,065,788 | 2/13/2024 |
8.0.1 | 2,380,377 | 1/9/2024 |
8.0.0 | 4,228,483 | 11/14/2023 |
8.0.0-rc.2.23480.2 | 94,405 | 10/10/2023 |
8.0.0-rc.1.23421.29 | 47,006 | 9/12/2023 |
8.0.0-preview.7.23375.9 | 55,333 | 8/8/2023 |
8.0.0-preview.6.23329.11 | 37,534 | 7/11/2023 |
8.0.0-preview.5.23302.2 | 15,055 | 6/13/2023 |
8.0.0-preview.4.23260.4 | 91,790 | 5/16/2023 |
8.0.0-preview.3.23177.8 | 13,367 | 4/11/2023 |
8.0.0-preview.2.23153.2 | 7,794 | 3/14/2023 |
8.0.0-preview.1.23112.2 | 4,993 | 2/21/2023 |
7.0.20 | 135,468 | 5/28/2024 |
7.0.19 | 65,837 | 5/14/2024 |
7.0.18 | 122,958 | 4/9/2024 |
7.0.17 | 124,908 | 3/12/2024 |
7.0.16 | 191,253 | 2/13/2024 |
7.0.15 | 296,428 | 1/9/2024 |
7.0.14 | 626,979 | 11/14/2023 |
7.0.13 | 1,147,447 | 10/24/2023 |
7.0.12 | 846,154 | 10/10/2023 |
7.0.11 | 1,321,812 | 9/12/2023 |
7.0.10 | 1,755,885 | 8/8/2023 |
7.0.9 | 1,513,349 | 7/11/2023 |
7.0.8 | 684,718 | 6/22/2023 |
7.0.7 | 964,979 | 6/13/2023 |
7.0.5 | 3,163,804 | 4/11/2023 |
7.0.4 | 1,357,214 | 3/14/2023 |
7.0.3 | 1,594,269 | 2/14/2023 |
7.0.2 | 1,446,815 | 1/10/2023 |
7.0.1 | 963,944 | 12/13/2022 |
7.0.0 | 1,560,246 | 11/7/2022 |
7.0.0-rc.2.22476.2 | 26,270 | 10/11/2022 |
7.0.0-rc.1.22427.2 | 23,581 | 9/14/2022 |
7.0.0-preview.7.22376.6 | 10,569 | 8/9/2022 |
7.0.0-preview.6.22330.3 | 7,715 | 7/12/2022 |
7.0.0-preview.5.22303.8 | 9,062 | 6/14/2022 |
7.0.0-preview.4.22251.1 | 6,820 | 5/10/2022 |