I\'m building a PHP RESTful API, following this tutorial. The following function, which should return the data sent with the request when the \'put\' method is used, returns
I had the same problem.
Eventually, I found that the problem was that in the client side I didn't stringify the json object (previously I used nodejs server and it was OK).
Once I did that, I received the data in $_POST (not as json), as regular parameters.