7 references to AddOpenApi
Microsoft.AspNetCore.OpenApi (2)
Extensions\OpenApiServiceCollectionExtensions.cs (2)
35
return services.
AddOpenApi
(documentName, _ => { });
92
=> services.
AddOpenApi
(OpenApiConstants.DefaultDocumentName, configureOptions);
Microsoft.AspNetCore.OpenApi.Tests (5)
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)