Table of Contents

Interface IGetByIdService<TResource, TId>

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

Type Parameters

TResource
TId

Methods

GetAsync(TId, CancellationToken)

Handles a JSON:API request to retrieve a single resource for a primary endpoint.

Task<TResource> GetAsync(TId id, CancellationToken cancellationToken)

Parameters

id TId
cancellationToken CancellationToken

Returns

Task<TResource>