Table of Contents

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

IActionResult

Error(IEnumerable<ErrorObject>)

protected IActionResult Error(IEnumerable<ErrorObject> errors)

Parameters

errors IEnumerable<ErrorObject>

Returns

IActionResult