protected function do_put() { parse_str(file_get_contents("php://input"), $_PUT); if (empty($_PUT["summary"])) { $this->exit_error(400, "summaryMandatoryAndNotEmpty"); } else { if (empty($_PUT["team_id"])) { $this->exit_error(400, "teamIDMandatoryAndNotEmpty"); } else { $summary = $_PUT["summary"]; $team_id = $_PUT["team_id"]; TeamModel::updateTeamSummary($summary, $team_id); } } }