add client restapi