add rest method, add service URL to timeseries cache, refactor