Register
Create a new patient or doctor account
Login
Authenticate and get your JWT token
Doctors
Browse all available doctors
Book Appointment
Schedule a doctor appointment
My Appointments
View your booked appointments
💡 How to use: Start by registering a user, then login to get your JWT token.
The token is saved automatically and used for all protected requests!
👤 Register User
POST /api/auth/register — Create a new account
📝 Request Body
Response
Waiting...
// Response will appear here
🔐 Login
POST /api/auth/login — Authenticate and receive JWT token
📝 Request Body
Response
Waiting...
// Response will appear here
🔑 Token saved automatically for all requests!
🩺 View All Doctors
GET /api/doctors — Requires JWT token
🔐 Login first to get your token — it will be auto-filled below!
🔑 Auth Token
Response
Waiting...
// Response will appear here
📅 Book Appointment
POST /api/appointments/book — Requires PATIENT token
🔐 Login as a PATIENT first to book an appointment!
📝 Request Body
Response
Waiting...
// Response will appear here
📋 My Appointments
GET /api/appointments/my — Requires JWT token
🔐 Login first to view your appointments!
🔑 Auth Token
Response
Waiting...
// Response will appear here