8 instantiations of ApiDescription
Microsoft.AspNetCore.Grpc.Swagger (1)
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
Microsoft.AspNetCore.OpenApi.Tests (3)
185 references to ApiDescription
ApiExplorerWebSite (2)
Microsoft.AspNetCore.Grpc.Swagger (3)
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
Microsoft.AspNetCore.Mvc.Abstractions (8)
Microsoft.AspNetCore.Mvc.ApiExplorer (17)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (127)
EndpointMetadataApiDescriptionProviderTest.cs (53)
48var apiDescription = GetApiDescription(TestAction);
57var apiDescription = GetApiDescription(() => { });
65static void AssertCustomRequestFormat(ApiDescription apiDescription)
86var apiDescription = GetApiDescription(
105var apiDescription = GetApiDescription(
120var apiDescription = GetApiDescription(
135static void AssertJsonResponse(ApiDescription apiDescription, Type expectedType)
154var apiDescription = GetApiDescription(() => "foo");
169static void AssertVoid(ApiDescription apiDescription)
187var apiDescription = GetApiDescription(
214var apiDescription = GetApiDescription(
252var apiDescription = GetApiDescription(
280var apiDescription = GetApiDescription(Results<Created<InferredJsonClass>, BadRequest> () =>
306var apiDescription = GetApiDescription(() => TypedResults.Created("https://example.com", new InferredJsonClass()));
324var apiDescription = GetApiDescription(() => TypedResults.Problem());
338var apiDescription = GetApiDescription(() =>
357var apiDescription = GetApiDescription(
385var apiDescription = GetApiDescription(
419static void AssertPathParameter(ApiDescription apiDescription)
434static void AssertPathParameter(ApiDescription apiDescription)
448static void AssertPathParameter(ApiDescription apiDescription)
462static void AssertPathParameter(ApiDescription apiDescription, Type expectedTYpe)
483static void AssertPathParameter(ApiDescription apiDescription, Type expectedTYpe)
504static void AssertPathParameter(ApiDescription apiDescription)
518static void AssertPathParameter(ApiDescription apiDescription)
532static void AssertQueryParameter<T>(ApiDescription apiDescription)
554static void AssertBody<T>(ApiDescription apiDescription)
570var apiDescription = GetApiDescription(([FromHeader] int foo) => { });
595static void AssertBodyParameter(ApiDescription apiDescription, string expectedName, Type expectedType)
611var apiDescription = GetApiDescription(TestActionWithDefaultValue);
620var apiDescription = GetApiDescription(([FromRoute] int foo, int bar, InferredJsonClass fromBody) => { }, httpMethods: ["POST"]);
649static void AssertParameters(ApiDescription apiDescription, string capturedName = "Foo")
700var apiDescription = GetApiDescription(([AsParameters] AsParametersWithRequiredMembers foo) => { });
713var apiDescription = GetApiDescription(([AsParameters] AsParametersWithRequiredMembers foo) => { });
730var apiDescription = GetApiDescription(([AsParameters] AsParametersWithRequiredMembersObliviousContext foo) => { });
742var apiDescription = GetApiDescription(([FromRoute] int foo, int? bar) => { });
761var apiDescription = GetApiDescription(() => "foo", displayName: "FOO");
769var apiDescription = GetApiDescription([ApiExplorerSettings(IgnoreApi = true)] () => { });
787var apiDescription = GetApiDescription((string foo, int bar) => { });
806var apiDescription = GetApiDescription(([Description("The name.")] string name) => { });
849var apiDescription = Assert.Single(context.Results);
874var apiDescription = Assert.Single(context.Results);
1272var apiDescription = GetApiDescription(
1289var apiDescription0 = GetApiDescription((IFormFile fromFile) => { });
1290var apiDescription1 = GetApiDescription((IFormFile? fromFile) => { });
1310static void AssertFormFileParameter(ApiDescription apiDescription, Type expectedType, string expectedName)
1380var apiDescription = Assert.Single(context.Results);
1416var apiDescription = Assert.Single(context.Results);
1445var apiDescription = Assert.Single(context.Results);
1476var apiDescription = Assert.Single(context.Results);
1510var apiDescription = Assert.Single(context.Results);
1523private static IList<ApiDescription> GetApiDescriptions(
1575private static ApiDescription GetApiDescription(Delegate action, string? pattern = null, string? displayName = null, IEnumerable<string>? httpMethods = null, RequestDelegateFactoryOptions? options = null) =>
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
Microsoft.AspNetCore.OpenApi (18)
Services\OpenApiDocumentService.cs (12)
235IGrouping<string?, ApiDescription> descriptions,
243foreach (var description in descriptions)
270ApiDescription description,
297private static string? GetSummary(ApiDescription description)
300private static string? GetDescription(ApiDescription description)
303private static string? GetOperationId(ApiDescription description)
307private static List<OpenApiTag>? GetTags(ApiDescription description)
320ApiDescription description,
352ApiDescription apiDescription,
392ApiDescription description,
460private async Task<OpenApiRequestBody?> GetRequestBodyAsync(ApiDescription description, IServiceProvider scopedServiceProvider, IOpenApiSchemaTransformer[] schemaTransformers, CancellationToken cancellationToken)
680private static Type GetTargetType(ApiDescription description, ApiParameterDescription parameter)
Microsoft.AspNetCore.OpenApi.Tests (6)