updating rest example