Table of Contents

Interface IGetRelationshipService<TResource, TId>

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

Type Parameters

TResource
TId

Methods

GetRelationshipAsync(TId, string, CancellationToken)

Handles a JSON:API request to retrieve a single relationship.

Task<object?> GetRelationshipAsync(TId id, string relationshipName, CancellationToken cancellationToken)

Parameters

id TId
relationshipName string
cancellationToken CancellationToken

Returns

Task<object>