added another RESTful service, but written using $http + $q.