9 references to AddOpenApi
Microsoft.AspNetCore.OpenApi (2)
Extensions\OpenApiServiceCollectionExtensions.cs (2)
35
return services.
AddOpenApi
(documentName, _ => { });
91
=> services.
AddOpenApi
(OpenApiConstants.DefaultDocumentName, configureOptions);
Microsoft.AspNetCore.OpenApi.Tests (7)
Extensions\OpenApiEndpointRouteBuilderExtensionsTests.cs (1)
254
.
AddOpenApi
(documentName, x => x.OpenApiVersion = openApiSpecVersion)
Extensions\OpenApiServiceCollectionExtensionsTests.cs (5)
57
var returnedServices = services.
AddOpenApi
(documentName, options => { });
71
services.
AddOpenApi
(documentName, options => { });
158
.
AddOpenApi
(documentName, options => options.OpenApiVersion = OpenApiSpecVersion.OpenApi2_0)
159
.
AddOpenApi
(documentName, options => options.OpenApiVersion = OpenApiSpecVersion.OpenApi3_0);
182
.
AddOpenApi
(documentName, options => options.OpenApiVersion = OpenApiSpecVersion.OpenApi2_0)
Services\OpenApiDocumentProviderTests.cs (1)
122
serviceCollection.
AddOpenApi
(documentName, x => x.OpenApiVersion = openApiSpecVersion);