get("user_id"); $params->select("request"); if ($params->exists(["record_id"]) == false) { respondStatus(400, "Missing parameter"); } $record = getTimeRecord($user_id, $params->get("record_id")); $json = new JsonBuilder(); $json->addRecords([$record]); respondJson($json); } } $branch = new GetRecordBranch(); $branch->execute();