7 writes to MediaType
Microsoft.AspNetCore.Grpc.Swagger (2)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (2)
82ApiResponseFormats = { new ApiResponseFormat { MediaType = "application/json" } }, 88ApiResponseFormats = { new ApiResponseFormat { MediaType = "application/json" } },
Microsoft.AspNetCore.Mvc.ApiExplorer (5)
ApiResponseTypeProvider.cs (2)
330MediaType = formatterSupportedContentType, 341MediaType = contentType,
EndpointMetadataApiDescriptionProvider.cs (3)
427return new ApiResponseFormat { MediaType = "text/plain" }; 432return new ApiResponseFormat { MediaType = "application/json" }; 458MediaType = contentType,
47 references to MediaType
ApiExplorerWebSite (1)
ApiExplorerDataFilter.cs (1)
109MediaType = responseFormat.MediaType
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (45)
ApiResponseTypeProviderTest.cs (26)
46Assert.Equal("application/json", format.MediaType); 111Assert.Equal("application/json", format.MediaType); 124Assert.Equal("application/json", format.MediaType); 169Assert.Equal("application/json", format.MediaType); 218format => Assert.Equal("application/json", format.MediaType)); 256format => Assert.Equal("application/json", format.MediaType)); 265format => Assert.Equal("application/json", format.MediaType)); 313format => Assert.Equal("application/json", format.MediaType)); 355format => Assert.Equal("application/json", format.MediaType)); 364format => Assert.Equal("application/json", format.MediaType)); 373format => Assert.Equal("application/json", format.MediaType)); 407format => Assert.Equal("application/json", format.MediaType)); 415format => Assert.Equal("application/json", format.MediaType)); 450format => Assert.Equal("application/json", format.MediaType)); 458format => Assert.Equal("application/json", format.MediaType)); 467format => Assert.Equal("application/json", format.MediaType)); 501format => Assert.Equal("application/json", format.MediaType)); 554format => Assert.Equal("application/json", format.MediaType)); 593format => Assert.Equal("application/json", format.MediaType)); 602format => Assert.Equal("application/json", format.MediaType)); 611format => Assert.Equal("application/json", format.MediaType)); 644format => Assert.Equal("application/json", format.MediaType)); 674format => Assert.Equal("application/json", format.MediaType)); 702Assert.Equal("application/pdf", format.MediaType); 780.OrderBy(format => format.MediaType) 781.Select(format => format.MediaType);
DefaultApiDescriptionProviderTest.cs (4)
1132Assert.StartsWith("text/", responseFormat.MediaType); 1204responseType.ApiResponseFormats.Where(responseFormat => responseFormat.MediaType == "text/json")); 2348.OrderBy(responseType => responseType.MediaType) 2349.Select(responseType => responseType.MediaType);
EndpointMetadataApiDescriptionProviderTest.cs (15)
143Assert.Equal("application/json", responseFormat.MediaType); 162Assert.Equal("text/plain", responseFormat.MediaType); 200Assert.Equal(["application/json", "application/custom"], inferredResponseType.ApiResponseFormats.Select(f => f.MediaType)); 208Assert.Equal("application/custom", Assert.Single(annotatedResponseType.ApiResponseFormats).MediaType); 228Assert.Equal("application/json", rdfInferredResponseFormat.MediaType); 237Assert.Equal("application/json", createdResponseFormat.MediaType); 246Assert.Equal("application/json", badRequestResponseFormat.MediaType); 266Assert.Equal("application/json", createdResponseFormat.MediaType); 292Assert.Equal("application/json", createdResponseFormat.MediaType); 317Assert.Equal("application/json", createdResponseFormat.MediaType); 350Assert.Equal("application/json", createdResponseFormat.MediaType); 371Assert.Equal("application/json", createdResponseFormat.MediaType); 405Assert.Equal("application/json", createdResponseFormat.MediaType); 1519.OrderBy(format => format.MediaType) 1520.Select(format => format.MediaType);
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
370.Select(responseFormat => responseFormat.MediaType);