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