FIX for api.ini parsig file, alias section was updated

This commit is contained in:
Erik Amaru Ortiz
2013-12-02 16:53:08 -04:00
parent a5879e280a
commit 260bcb7e89
7 changed files with 285 additions and 218 deletions

View File

@@ -34,7 +34,7 @@ class Test extends Api
return $this->data[$id];
}
throw new RestException(400, "Record not found. Record with id: $id does not exist!");
throw new RestException(400, "GET: Record not found. Record with id: $id does not exist!");
}
function post($request_data = NULL)
@@ -78,7 +78,7 @@ class Test extends Api
return $this->data[$id];
} else {
throw new RestException(400, "Record not found. Record with id: $id does not exist!");
throw new RestException(400, "PUT: Record not found. Record with id: $id does not exist!");
}
}
@@ -91,7 +91,7 @@ class Test extends Api
return $row;
} else {
throw new RestException(400, "Record not found. Record with id: $id does not exist!");
throw new RestException(400, "DELETE: Record not found. Record with id: $id does not exist!");
}
}