Skip to content

Backend Routes #3

@Mu7ammadAbed

Description

@Mu7ammadAbed

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 👍
👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    TemplatedocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions