rename resource to service, config takes base url without path.