I am using Restler 2.0 and I'm trying to add a new route based on the CRUD example
$o['GET']['author/:name/:email']=array (
'class_name' => 'Author',
'method_name' => 'getLogin',
'arguments' =>
array (
'name' => 0,
'email' => 1,
),
'defaults' =>
array (
0 => NULL,
1 => NULL,
),
'metadata' =>
array (
),
'method_flag' => 0,
);
when I make the url call in the browser http://[host]/author/[name to pull]/[email to pull]
I get the following error:
{ "error": { "code": 404, "message": "Not Found" } }
my author code has been updated with the following method
function getLogin($name=NULL,$email=NULL) {
print "in author, getting login";
return $this->dp->getLogin($name,$email);
}
I am stumped.