getParsedBody(); if (empty($data->id)) { throw new BadRequest(); } $id = $data->id; $this->service->removeReminder($id); return true; } }