support server rest and client rest
update rest