Implement rest client