Restful with PHP and angular.js