Table of Contents

Interface ICreateService<TResource, TId>

Namespace
JsonApiDotNetCore.Services
Assembly
JsonApiDotNetCore.dll
public interface ICreateService<TResource, in TId> where TResource : class, IIdentifiable<in TId>

Type Parameters

TResource
TId

Methods

CreateAsync(TResource, CancellationToken)

Handles a JSON:API request to create a new resource with attributes, relationships or both.

Task<TResource?> CreateAsync(TResource resource, CancellationToken cancellationToken)

Parameters

resource TResource
cancellationToken CancellationToken

Returns

Task<TResource>