A base class for services using Angular's Resource module