Table of Contents

Class JsonApiQueryController<TResource, TId>

Namespace
JsonApiDotNetCore.Controllers
Assembly
JsonApiDotNetCore.dll

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

public abstract class JsonApiQueryController<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>
JsonApiQueryController<TResource, TId>
Inherited Members

Constructors

JsonApiQueryController(IJsonApiOptions, IResourceGraph, ILoggerFactory, IResourceQueryService<TResource, TId>)

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

protected JsonApiQueryController(IJsonApiOptions options, IResourceGraph resourceGraph, ILoggerFactory loggerFactory, IResourceQueryService<TResource, TId> queryService)

Parameters

options IJsonApiOptions
resourceGraph IResourceGraph
loggerFactory ILoggerFactory
queryService IResourceQueryService<TResource, TId>