public Task Delete(JwtCredentials credentials) { var request = new HttpRequest<dynamic>("/consumers/{consumerId}/jwt/{credentialId}", HttpMethods.Delete); request.AddQueryParameter("consumerId", _consumer.Id); request.AddQueryParameter("credentialId", credentials.Id); return ExecuteAsync(request); }
public Task Patch(JwtCredentials credentials) { var request = new HttpRequest<KongCollection<JwtCredentials>>("/consumers/{consumerId}/jwt/{credentialId}", HttpMethods.Patch) { Data = credentials }; request.AddQueryParameter("consumerId", _consumer.Id); request.AddQueryParameter("credentialId", credentials.Id); return ExecuteAsync(request); }