//this is rest.php (index)