Microsoft.AspNetCore.OpenApi 9.0.1

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.

Showing the top 20 packages that depend on Microsoft.AspNetCore.OpenApi.

Packages Downloads
Umbraco.Cms.Api.Management
Contains the presentation layer for the Umbraco CMS Management API.
30
Umbraco.Cms.Api.Management
Contains the presentation layer for the Umbraco CMS Management API.
28
Umbraco.Cms.Api.Management
Contains the presentation layer for the Umbraco CMS Management API.
24
Umbraco.Cms.Api.Management
Contains the presentation layer for the Umbraco CMS Management API.
18
Umbraco.Cms.Api.Common
Contains the bits and pieces that are shared between the Umbraco CMS APIs.
18
Umbraco.Cms.Api.Common
Contains the bits and pieces that are shared between the Umbraco CMS APIs.
17
Umbraco.Cms.Api.Management
Contains the presentation layer for the Umbraco CMS Management API.
16
Umbraco.Cms.Api.Common
Contains the bits and pieces that are shared between the Umbraco CMS APIs.
16
Umbraco.Cms.Api.Common
Contains the bits and pieces that are shared between the Umbraco CMS APIs.
15
Umbraco.Cms.Api.Common
Contains the bits and pieces that are shared between the Umbraco CMS APIs.
13
Umbraco.Cms.Api.Management
Contains the presentation layer for the Umbraco CMS Management API.
13
Umbraco.Cms.Api.Management
Contains the presentation layer for the Umbraco CMS Management API.
12
Umbraco.Cms.Api.Common
Contains the bits and pieces that are shared between the Umbraco CMS APIs.
12

.NET 9.0

Version Downloads Last updated
11.0.0 1 11/14/2026
11.0.0-rc.3.26522.148 4 11/07/2026
11.0.0-rc.2.26504.105 3 10/14/2026
11.0.0-rc.1.26425.128 10 09/11/2026
11.0.0-preview.7.26381.103 11 08/12/2026
11.0.0-preview.6.26359.118 19 07/17/2026
11.0.0-preview.5.26302.115 21 06/25/2026
11.0.0-preview.4.26230.115 14 06/25/2026
11.0.0-preview.3.26207.106 13 06/25/2026
11.0.0-preview.2.26159.112 9 06/25/2026
11.0.0-preview.1.26104.118 10 06/29/2026
10.0.15 2 11/12/2026
10.0.14 5 10/28/2026
10.0.13 4 10/14/2026
10.0.12 7 09/11/2026
10.0.11 12 08/12/2026
10.0.10 11 07/18/2026
10.0.9 10 06/30/2026
10.0.8 14 06/29/2026
10.0.7 13 06/29/2026
10.0.6 20 07/04/2026
10.0.5 15 06/30/2026
10.0.4 12 07/01/2026
10.0.3 11 06/29/2026
10.0.2 11 07/04/2026
10.0.1 12 06/29/2026
10.0.0 13 06/26/2026
10.0.0-rc.2.25502.107 12 06/26/2026
10.0.0-rc.1.25451.107 7 06/25/2026
10.0.0-preview.7.25380.108 11 06/29/2026
10.0.0-preview.6.25358.103 13 06/25/2026
10.0.0-preview.5.25277.114 10 07/06/2026
10.0.0-preview.4.25258.110 15 06/29/2026
10.0.0-preview.3.25172.1 11 06/26/2026
10.0.0-preview.2.25164.1 10 06/25/2026
10.0.0-preview.1.25120.3 11 06/29/2026
9.0.23 2 11/14/2026
9.0.22 1 11/14/2026
9.0.21 12 10/14/2026
9.0.20 7 09/23/2026
9.0.19 16 08/12/2026
9.0.18 12 07/18/2026
9.0.17 8 06/30/2026
9.0.16 14 06/30/2026
9.0.15 15 06/29/2026
9.0.14 11 06/29/2026
9.0.13 15 06/29/2026
9.0.12 11 06/29/2026
9.0.11 17 06/29/2026
9.0.10 7 06/29/2026
9.0.9 13 06/30/2026
9.0.8 10 06/29/2026
9.0.7 14 06/29/2026
9.0.6 11 06/29/2026
9.0.5 23 06/30/2026
9.0.4 11 06/29/2026
9.0.3 20 06/30/2026
9.0.2 13 06/29/2026
9.0.1 11 06/29/2026
9.0.0 13 06/29/2026
9.0.0-rc.2.24474.3 16 07/07/2026
9.0.0-rc.1.24452.1 12 07/01/2026
9.0.0-preview.7.24406.2 15 06/27/2026
9.0.0-preview.6.24328.4 9 06/27/2026
9.0.0-preview.5.24306.11 11 06/25/2026
9.0.0-preview.4.24267.6 10 06/27/2026
9.0.0-preview.3.24172.13 9 06/25/2026
9.0.0-preview.2.24128.4 5 06/27/2026
9.0.0-preview.1.24081.5 16 06/27/2026
8.0.34 1 11/14/2026
8.0.33 2 11/14/2026
8.0.32 3 10/14/2026
8.0.31 9 09/11/2026
8.0.30 11 08/12/2026
8.0.29 14 07/18/2026
8.0.28 10 06/29/2026
8.0.27 12 06/29/2026
8.0.26 13 06/29/2026
8.0.25 11 07/03/2026
8.0.24 13 06/29/2026
8.0.23 17 06/29/2026
8.0.22 21 07/02/2026
8.0.21 8 06/29/2026
8.0.20 8 06/29/2026
8.0.19 13 06/29/2026
8.0.18 13 06/29/2026
8.0.17 10 06/29/2026
8.0.16 12 07/01/2026
8.0.15 10 06/29/2026
8.0.14 13 03/18/2025
8.0.13 13 06/29/2026
8.0.12 12 06/29/2026
8.0.11 10 06/29/2026
8.0.10 10 11/05/2024
8.0.8 13 06/29/2026
8.0.7 15 06/29/2026
8.0.6 12 06/29/2026
8.0.5 11 07/07/2026
8.0.4 8 07/02/2026
8.0.3 6 06/29/2026
8.0.2 12 06/29/2026
8.0.1 14 06/29/2026
8.0.0 20 01/03/2024
8.0.0-rc.2.23480.2 13 06/25/2026
8.0.0-rc.1.23421.29 22 01/10/2024
8.0.0-preview.7.23375.9 12 06/27/2026
8.0.0-preview.6.23329.11 18 01/11/2024
8.0.0-preview.5.23302.2 13 01/10/2024
8.0.0-preview.4.23260.4 13 01/10/2024
8.0.0-preview.3.23177.8 15 01/10/2024
8.0.0-preview.2.23153.2 13 01/10/2024
8.0.0-preview.1.23112.2 14 01/10/2024
7.0.20 15 06/29/2026
7.0.19 10 06/29/2026
7.0.18 11 06/29/2026
7.0.17 12 06/30/2026
7.0.16 11 06/29/2026
7.0.15 14 07/01/2026
7.0.14 13 12/11/2023
7.0.13 15 01/05/2024
7.0.12 10 01/08/2024
7.0.11 18 01/05/2024
7.0.10 19 01/09/2024
7.0.9 12 01/08/2024
7.0.8 14 01/09/2024
7.0.7 11 01/08/2024
7.0.5 16 01/08/2024
7.0.4 14 01/08/2024
7.0.3 13 01/08/2024
7.0.2 13 01/08/2024
7.0.1 12 01/05/2024
7.0.0 9 01/11/2024
7.0.0-rc.2.22476.2 17 12/15/2023
7.0.0-rc.1.22427.2 12 06/25/2026
7.0.0-preview.7.22376.6 11 01/10/2024
7.0.0-preview.6.22330.3 13 01/10/2024
7.0.0-preview.5.22303.8 14 01/10/2024
7.0.0-preview.4.22251.1 8 01/10/2024