Update RestApi.php