I started looking at the Tonic Restful Services framework and I really think it’s a very nice framework. The problem is that I cannot find much resources apart from the examples in order to see possible ways of using it.
I would like for example to know if I could use the POST verb more than one time in a single resource and if there is some sort of annotation that could allow me to do that. For example JAX-RS have the @Action annotation.
I really do not have a lot of experience with REST or PHP so I really need your help.
Thank you in advance.
No, you cannot. But you can route your posts using another variable in your posts requests.
Just make sure to clean methods name for security reasons…
something like this.
If you want to check if method exists, you could use something like
But that’s another topic. http://php.net/manual/en/function.method-exists.php