🏥 Hospital Pro - Backend API

✅ API Status

Backend is running

🔄 Database Status

Checking...

📦 Version

v1.0.0

📍 Available Endpoints

GET Get All Users
/backend/api/users.php
GET Get Users by Role
/backend/api/users.php?role=doctor

Roles: client, doctor, staff, lab

GET Get User by ID
/backend/api/users.php/{id}
POST Create User (Signup/Admin)
/backend/api/users.php
PUT Update User
/backend/api/users.php
DELETE Delete User
/backend/api/users.php

📝 Example: Create User (Signup)

Request:

curl -X POST http://localhost/hospital_pro/backend/api/users.php \ -H "Content-Type: application/json" \ -d '{ "name": "John Doe", "email": "john@example.com", "phone": "0300-1234567", "password": "password123", "role": "client", "status": "active" }'

Response:

{ "success": true, "message": "User created successfully", "user_id": 1 }