Delete issue solved: Resource class accepts only bool or Apiproblem as delete result
Also, in updateItem we should use getItemWhere instead of getItem