Calling a RESTful service using angular