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
TResourcecancellationToken
CancellationToken
Returns
- Task<TResource>