IApiResponseMetadataProvider Interface¶
Provides a return type, status code and a set of possible content types returned by a successful execution of the action.
- Namespace
Microsoft.AspNetCore.Mvc.ApiExplorer
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public interface IApiResponseMetadataProvider
-
interface
Microsoft.AspNetCore.Mvc.ApiExplorer.
IApiResponseMetadataProvider
Methods¶
-
SetContentTypes
(Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection)¶ Configures a collection of allowed content types which can be produced by the action.
void SetContentTypes(MediaTypeCollection contentTypes)
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider.
StatusCode
¶ Gets the HTTP status code of the response.
Return type: System.Int32 int StatusCode { get; }
-
Microsoft.AspNetCore.Mvc.ApiExplorer.IApiResponseMetadataProvider.
Type
¶ Gets the optimistic return type of the action.
Return type: System.Type Type Type { get; }
-