Class CoreJsonApiController
- Namespace
- JsonApiDotNetCore.Controllers
- Assembly
- JsonApiDotNetCore.dll
Provides helper methods to raise JSON:API compliant errors from controller actions.
public abstract class CoreJsonApiController : ControllerBase
- Inheritance
-
CoreJsonApiController
- Derived
- Inherited Members
Methods
Error(ErrorObject)
protected IActionResult Error(ErrorObject error)
Parameters
error
ErrorObject
Returns
Error(IEnumerable<ErrorObject>)
protected IActionResult Error(IEnumerable<ErrorObject> errors)
Parameters
errors
IEnumerable<ErrorObject>