public Task <TEntity> GetAsync(Guid id, QueryContext context = null, CancellationToken ct = default) { Guard.NotEmpty(id, nameof(id)); return(RequestJsonAsync <TEntity>(HttpMethod.Get, BuildSchemaUrl($"{id}/", true, context), null, context, ct)); }
public Task <TEntity> DeleteDraftAsync(Guid id, CancellationToken ct = default) { Guard.NotEmpty(id, nameof(id)); return(RequestJsonAsync <TEntity>(HttpMethod.Delete, BuildSchemaUrl($"{id}/draft", false), ct: ct)); }
public Task DeleteAsync(Guid id, CancellationToken ct = default) { Guard.NotEmpty(id, nameof(id)); return(RequestAsync(HttpMethod.Delete, BuildSchemaUrl($"{id}/", false), ct: ct)); }
public Task <ExtendableRuleDto> DisableRuleAsync(Guid id, CancellationToken ct = default) { Guard.NotEmpty(id, nameof(id)); return(RequestJsonAsync <ExtendableRuleDto>(HttpMethod.Put, BuildUrl($"{id}/disable"), ct: ct)); }