I think I'm not understanding how a POST is done in a RESTful api. When creating a new object in Restangular with this:
var user = {name: "John", id:"123"};
Restangular.one('building','5').post(user);
I expect it to pass a $_POST array with the values of user to the url example.com/api/building/5
And right know it's doing a POST request to the correct script but the $_POST array is empty. Any idea of what I'm doing wrong?