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