update rest demo