rest client service