I don't know how restler behaves. when i am passing getuser/2
it works fine, but when i am passing /getalluser
it gives
{
error: {
code: 404,
message: "Not Found"
}
}
But when i changed the function name getalluser
to buyalluser
it works fine.
Can anybody tell me whats the problem with my function names in restler framework?
As you have already found out
Restler is using get, post, put, delete as method prefixes to automatically map them to respective HTTP method/verb GET is the default HTTP method, so if you dont prefix a method with any of the above, it will be mapped to GET method.