AngularJS ngResource Restful extension