get("user_id"); 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();