Rewrote with ngResource instead Restangular