Angular.js $http wrapper for RESTFul applications