Microsoft.AspNetCore.OpenApi 9.0.0-rc.2.24474.3
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.
No packages depend on Microsoft.AspNetCore.OpenApi.
.NET 9.0
- Microsoft.OpenApi (>= 1.6.17)
Version | Downloads | Last updated |
---|---|---|
9.0.0-rc.2.24474.3 | 2 | 10/15/2024 |
9.0.0-rc.1.24452.1 | 4 | 09/22/2024 |
9.0.0-preview.7.24406.2 | 5 | 08/21/2024 |
9.0.0-preview.6.24328.4 | 5 | 07/14/2024 |
9.0.0-preview.5.24306.11 | 7 | 06/16/2024 |
9.0.0-preview.4.24267.6 | 8 | 06/01/2024 |
9.0.0-preview.3.24172.13 | 7 | 04/17/2024 |
9.0.0-preview.2.24128.4 | 6 | 04/05/2024 |
9.0.0-preview.1.24081.5 | 10 | 02/22/2024 |
8.0.10 | 4 | 10/14/2024 |
8.0.8 | 6 | 08/20/2024 |
8.0.7 | 4 | 07/13/2024 |
8.0.6 | 7 | 06/02/2024 |
8.0.5 | 5 | 05/28/2024 |
8.0.4 | 7 | 04/29/2024 |
8.0.3 | 8 | 04/05/2024 |
8.0.2 | 7 | 02/23/2024 |
8.0.1 | 8 | 01/19/2024 |
8.0.0 | 8 | 01/19/2024 |
8.0.0-rc.2.23480.2 | 6 | 11/08/2023 |
8.0.0-rc.1.23421.29 | 7 | 01/19/2024 |
8.0.0-preview.7.23375.9 | 8 | 01/18/2024 |
8.0.0-preview.6.23329.11 | 7 | 01/19/2024 |
8.0.0-preview.5.23302.2 | 4 | 01/18/2024 |
8.0.0-preview.4.23260.4 | 6 | 01/19/2024 |
8.0.0-preview.3.23177.8 | 5 | 01/18/2024 |
8.0.0-preview.2.23153.2 | 6 | 01/19/2024 |
8.0.0-preview.1.23112.2 | 6 | 01/19/2024 |
7.0.20 | 8 | 06/02/2024 |
7.0.19 | 5 | 05/20/2024 |
7.0.18 | 9 | 04/17/2024 |
7.0.17 | 5 | 04/12/2024 |
7.0.16 | 5 | 02/19/2024 |
7.0.15 | 7 | 01/19/2024 |
7.0.14 | 4 | 01/19/2024 |
7.0.13 | 6 | 01/19/2024 |
7.0.12 | 6 | 01/19/2024 |
7.0.11 | 8 | 01/18/2024 |
7.0.10 | 7 | 01/19/2024 |
7.0.9 | 8 | 01/19/2024 |
7.0.8 | 6 | 01/18/2024 |
7.0.7 | 6 | 01/19/2024 |
7.0.5 | 5 | 01/19/2024 |
7.0.4 | 7 | 01/19/2024 |
7.0.3 | 7 | 01/19/2024 |
7.0.2 | 5 | 01/18/2024 |
7.0.1 | 8 | 01/19/2024 |
7.0.0 | 5 | 01/19/2024 |
7.0.0-rc.2.22476.2 | 10 | 01/19/2024 |
7.0.0-rc.1.22427.2 | 5 | 01/19/2024 |
7.0.0-preview.7.22376.6 | 4 | 01/19/2024 |
7.0.0-preview.6.22330.3 | 7 | 01/19/2024 |
7.0.0-preview.5.22303.8 | 6 | 01/19/2024 |
7.0.0-preview.4.22251.1 | 6 | 01/19/2024 |