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)
253
.
AddOpenApi
(documentName, x => x.OpenApiVersion = openApiSpecVersion)
Extensions\OpenApiServiceCollectionExtensionsTests.cs (5)
54
var returnedServices = services.
AddOpenApi
(documentName, options => { });
68
services.
AddOpenApi
(documentName, options => { });
155
.
AddOpenApi
(documentName, options => options.OpenApiVersion = OpenApiSpecVersion.OpenApi2_0)
156
.
AddOpenApi
(documentName, options => options.OpenApiVersion = OpenApiSpecVersion.OpenApi3_0);
179
.
AddOpenApi
(documentName, options => options.OpenApiVersion = OpenApiSpecVersion.OpenApi2_0)
Services\OpenApiDocumentProviderTests.cs (1)
122
serviceCollection.
AddOpenApi
(documentName, x => x.OpenApiVersion = openApiSpecVersion);