11 references to AddOpenApi
GetDocumentSample (1)
Program.cs (1)
13
builder.Services.
AddOpenApi
("internal");
Microsoft.AspNetCore.OpenApi (1)
Extensions\OpenApiServiceCollectionExtensions.cs (1)
101
=> services.
AddOpenApi
(OpenApiConstants.DefaultDocumentName);
Microsoft.AspNetCore.OpenApi.Tests (5)
Extensions\OpenApiEndpointRouteBuilderExtensionsTests.cs (1)
189
.
AddOpenApi
(documentName)
Extensions\OpenApiServiceCollectionExtensionsTests.cs (3)
20
var returnedServices = services.
AddOpenApi
(documentName);
34
services.
AddOpenApi
(documentName);
180
.
AddOpenApi
(documentName);
Services\OpenApiDocumentProviderTests.cs (1)
69
serviceCollection.
AddOpenApi
(documentName);
Sample (4)
Program.cs (4)
32
builder.Services.
AddOpenApi
("controllers");
33
builder.Services.
AddOpenApi
("responses");
34
builder.Services.
AddOpenApi
("forms");
35
builder.Services.
AddOpenApi
("schemas-by-ref");