Example of AngularJS using Resource for consume a RESTful service