ApiDescription.SupportedRequestFormats Property

Definition

Gets the list of possible formats for a request.

C#
public System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ApiExplorer.ApiRequestFormat> SupportedRequestFormats { get; }

Property Value

Remarks

Will be empty if the action does not accept a parameter decorated with the [FromBody] attribute.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0