update rest demo

update rest demo