Replaced  request with a Restangular request.