Table of Contents

Class JsonApiCommandController<TResource, TId>

Namespace
JsonApiDotNetCore.Controllers
Assembly
JsonApiDotNetCore.dll

The base class to derive resource-specific write-only controllers from. Returns HTTP 405 on read-only endpoints. If you want to provide routing templates yourself, you should derive from BaseJsonApiController directly.

public abstract class JsonApiCommandController<TResource, TId> : JsonApiController<TResource, TId> where TResource : class, IIdentifiable<TId>

Type Parameters

TResource

The resource type.

TId

The resource identifier type.

Inheritance
BaseJsonApiController<TResource, TId>
JsonApiController<TResource, TId>
JsonApiCommandController<TResource, TId>
Inherited Members

Constructors

JsonApiCommandController(IJsonApiOptions, IResourceGraph, ILoggerFactory, IResourceCommandService<TResource, TId>)

The base class to derive resource-specific write-only controllers from. Returns HTTP 405 on read-only endpoints. If you want to provide routing templates yourself, you should derive from BaseJsonApiController directly.

protected JsonApiCommandController(IJsonApiOptions options, IResourceGraph resourceGraph, ILoggerFactory loggerFactory, IResourceCommandService<TResource, TId> commandService)

Parameters

options IJsonApiOptions
resourceGraph IResourceGraph
loggerFactory ILoggerFactory
commandService IResourceCommandService<TResource, TId>