Interface IAsyncConvertEmptyActionResultFilter
- Namespace
- JsonApiDotNetCore.Middleware
- Assembly
- JsonApiDotNetCore.dll
Converts action result without parameters into action result with null parameter.
[PublicAPI]
public interface IAsyncConvertEmptyActionResultFilter : IAsyncAlwaysRunResultFilter, IAsyncResultFilter, IFilterMetadata
- Inherited Members
Remarks
This basically turns calls such as
return NotFound()
into
return NotFound(null)
, so that our formatter is invoked, where we'll build a JSON:API compliant response. For details, see:
https://github.com/dotnet/aspnetcore/issues/16969