IApiResponseMetadataProvider IApiResponseMetadataProvider IApiResponseMetadataProvider Interface

Definition

Provides a return type, status code and a set of possible content types returned by a successful execution of the action.

public interface IApiResponseMetadataProvider : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
type IApiResponseMetadataProvider = interface
    interface IFilterMetadata
Public Interface IApiResponseMetadataProvider
Implements IFilterMetadata
Derived
Implements

Properties

StatusCode StatusCode StatusCode

Gets the HTTP status code of the response.

Type Type Type

Gets the optimistic return type of the action.

Methods

SetContentTypes(MediaTypeCollection) SetContentTypes(MediaTypeCollection) SetContentTypes(MediaTypeCollection)

Configures a collection of allowed content types which can be produced by the action.

Applies to