Adding sample api.php