using a Angular-resource to give the urls to the API