Register Endpoint Test
Test Data:
Array
(
[adsoyad] => Test User
[dismerkeziadi] => Test Clinic
[eposta] => test@example.com
[tel] => 5551234567
[password] =>
)
File Check:
✓ config.php: EXISTS
✓ database.php: EXISTS
✓ jwt.php: EXISTS
✓ User.php: EXISTS
✓ Subscription.php: EXISTS
✓ Clinic.php: EXISTS
Requiring files...
Warning: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent in /home/yeniapp/public_html/sil/config/config.php on line 15
Warning: session_start(): Session cannot be started after headers have already been sent in /home/yeniapp/public_html/sil/config/config.php on line 24
✓ config.php loaded
✓ database.php loaded
✓ jwt.php loaded
✓ User.php loaded
✓ Subscription.php loaded
✓ Clinic.php loaded
✓ User class exists
✓ Subscription class exists
✓ Clinic class exists
✓ Database connection successful
=== Testing Register Endpoint ===
Testing Clinic::create()...
✓ Clinic created successfully with ID: 51
✓ Test clinic deleted
=== Testing Real Register Endpoint ===
Using unique email: test_1794447265@example.com
Testing User::findByEmail()...
✓ Email is available
=== Manual Test Instructions ===
To test the real endpoint, use curl or Postman:
curl -X POST 'https://yeniapp.iharsdental.com.tr/api/mobile/auth.php?action=register' \
-H 'Content-Type: application/json' \
-d '{"adsoyad":"Test User","dismerkeziadi":"Test Clinic","eposta":"test_1794447265@example.com","tel":"5551234567","password":""}'
Or use this test data:
{
"adsoyad": "Test User",
"dismerkeziadi": "Test Clinic",
"eposta": "test_1794447265@example.com",
"tel": "5551234567",
"password": ""
}