Found the $resource module which is awesome. Rest will work just need the right url