Description User Routes
Route
Method
Description
Status
/appointments
POST
Check whether patient is existed or not and add appointment
👍
Admin Routes
Route
Method
Description
Status
/login
POST
Verify login and give token
👍
/logout
GET
Deletes the token and logs the user out
👍
/patients
GET
get All patients data
👍
/patients/:patientId
GET
GET Profile Data + History + Balance
👍
/patients/search?name&phone
get
Search for Patients
👍
/appointments/search?name&phone
GET
Search for patient's appointments
👍
/appointments/:date
GET
GET Patients Appoinments At Date
👍
/appointments/available/:date
GET
GET Available appointments at Date
👍
/patients/:patientId/history
POST
adds a log to the patiant's history
👍
/patients/:patientId/appointment/:appointmentId
PATCH
Edit availability (isDone) , Edit appointment date
👍
/patients/:patientId
PATCH
edits the profile data for that patiant
👍
/patients/:patientId/appointment
DELETE
deletes that oatiant's appointment
👍
👍
Reactions are currently unavailable
You can’t perform that action at this time.
User Routes
/appointmentsPOSTAdmin Routes
/loginPOST/logoutGET/patientsGET/patients/:patientIdGET/patients/search?name&phoneget/appointments/search?name&phoneGET/appointments/:dateGET/appointments/available/:dateGET/patients/:patientId/historyPOST/patients/:patientId/appointment/:appointmentIdPATCH/patients/:patientIdPATCH/patients/:patientId/appointmentDELETE