Hi,
You have syntax error in these lines:
L24:
return new \Phalcon\Db\Adapter\Pdo\Mysql\(array(
Correct:
return new \Phalcon\Db\Adapter\Pdo\Mysql(array(
...
L168-L173:
$status = $app->modelsManager->executeQuery($phql, array(
'id' = $id,
'name' = $robot->name,
'type' = $robot->type,
'year' = $robot->year
));
Correct:
$status = $app->modelsManager->executeQuery($phql, array(
'id' => $id,
'name' => $robot->name,
'type' => $robot->type,
'year' => $robot->year
));
...
L210:
$status = $app->modelsManager->executeQuery($phql, array(
'id' = $id
));
Correct
$status = $app->modelsManager->executeQuery($phql, array(
'id' => $id
));
After fix these lines your REST API should works.