Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend Routes #3

Open
Mu7ammadAbed opened this issue Mar 25, 2021 · 0 comments
Open

Backend Routes #3

Mu7ammadAbed opened this issue Mar 25, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation Template

Comments

@Mu7ammadAbed
Copy link
Member

Mu7ammadAbed commented Mar 25, 2021

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 馃憤
馃憤
@Mu7ammadAbed Mu7ammadAbed added documentation Improvements or additions to documentation Template labels Mar 25, 2021
@Mu7ammadAbed Mu7ammadAbed pinned this issue Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Template
Projects
None yet
Development

No branches or pull requests

1 participant