injecting rest client