Update rest.php