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’ll 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