API Routes - vernfongchao/MDP GitHub Wiki
API Documentation
Staffs:
- /api/staffs
-
GET “/”
- Api call to GET all staffs from the database
-
POST “/”
- Api call to POST staffs into the database
-
PUT “/:staff_id”
- Api call to PUT a staff from the database
-
DELETE “/:staff_id”
- Api call to DELETE a staff from the database
-
Departments:
- /api/departments
-
GET “/”
- Api call to GET all departments from the database
-
POST “/”
- Api call to POST departments into the database
-
PUT “/:department_id”
- Api call to PUT a department from the database
-
DELETE “/:department_id”
- Api call to DELETE a department from the database
-
Patient:
- /api/patients
-
GET “/”
- Api call to GET all patients from the database
-
POST “/”
- Api call to POST patients into the database
-
PUT “/:patient_id”
- Api call to PUT a patient from the database
-
DELETE “/:patient_id”
- Api call to DELETE a patient from the database
-
Reports:
- /api/reports
-
GET “/”
- Api call to GET all reports from the database
-
POST “/patients/:patient_id”
- Api call to POST a report into the database
-
PUT “/:id”
- Api call to PUT a report from the database
-
DELETE “/:id”
- Api call to DELETE a report from the database
-