cm rest client