<?php
$ch = curl_init('http://127.0.0.1:8000/api/auth/register');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
$data = json_encode([
    'name' => 'API Test Escort',
    'email' => 'apitest@example.com',
    'password' => 'TestPassword123!',
    'password_confirmation' => 'TestPassword123!'
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json', 'Accept:application/json'));
$response = curl_exec($ch);
echo "Register Response:\n";
echo $response . "\n";
curl_close($ch);
?>
