Interface IUpdateService<TResource, TId>
- Namespace
- JsonApiDotNetCore.Services
- Assembly
- JsonApiDotNetCore.dll
public interface IUpdateService<TResource, in TId> where TResource : class, IIdentifiable<in TId>
Type Parameters
TResource
TId
Methods
UpdateAsync(TId, TResource, CancellationToken)
Handles a JSON:API request to update the attributes and/or relationships of an existing resource. Only the values of sent attributes are replaced. And only the values of sent relationships are replaced.
Task<TResource?> UpdateAsync(TId id, TResource resource, CancellationToken cancellationToken)
Parameters
id
TIdresource
TResourcecancellationToken
CancellationToken
Returns
- Task<TResource>