2 writes to ApiResponseFormats
Microsoft.AspNetCore.Grpc.Swagger (2)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (2)
82ApiResponseFormats = { new ApiResponseFormat { MediaType = "application/json" } }, 88ApiResponseFormats = { new ApiResponseFormat { MediaType = "application/json" } },
18 references to ApiResponseFormats
Microsoft.AspNetCore.Mvc.Abstractions (1)
ApiExplorer\ApiResponseType.cs (1)
9/// Possible type of the response body which is formatted by <see cref="ApiResponseFormats"/>.
Microsoft.AspNetCore.Mvc.ApiExplorer (16)
ApiResponseTypeProvider.cs (7)
154.ThenBy(responseType => responseType.ApiResponseFormats.FirstOrDefault()?.MediaType) 379if (apiResponse.ApiResponseFormats.Count > 0) 421apiResponse.ApiResponseFormats.Add(new ApiResponseFormat 433apiResponse.ApiResponseFormats.Add(new ApiResponseFormat 491foreach (var format in newEntry.ApiResponseFormats) 493if (!existing.ApiResponseFormats.Any(f => f.MediaType == format.MediaType)) 495existing.ApiResponseFormats.Add(format);
EndpointMetadataApiDescriptionProvider.cs (9)
383AddResponseContentTypes(apiResponseType.ApiResponseFormats, contentTypes); 387else if (apiResponseType.ApiResponseFormats.Count == 0 && CreateDefaultApiResponseFormat(apiResponseType.Type) is { } defaultResponseFormat) 389apiResponseType.ApiResponseFormats.Add(defaultResponseFormat); 397existingResponseType.ApiResponseFormats.FirstOrDefault()?.MediaType == apiResponseType.ApiResponseFormats.FirstOrDefault()?.MediaType)) 411defaultApiResponseType.ApiResponseFormats.Clear(); 412AddResponseContentTypes(defaultApiResponseType.ApiResponseFormats, contentTypes); 426.ThenBy(rt => rt.ApiResponseFormats.FirstOrDefault()?.MediaType) 494apiResponseType.ApiResponseFormats.Add(responseFormat);
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
439var apiResponseFormatContentTypes = apiResponseType.ApiResponseFormats