Skip to content

MahmoudKalekish/Hospital-Management-System-RESTful-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hospital Management System API

Introduction

This README provides instructions for testing the Hospital Management System API using Postman. The API includes functionalities for patients, doctors, appointments, and administrators.

Base URL

http://localhost:8080

Postman Setup

  1. Download and install Postman.
  2. Open Postman.

Getting Started

To run this project locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/MahmoudKalekish/Hospital-Management-System-RESTful-API.git
    
    npm install
    
    npm start
    
    

User Registration and Login

1. Register a User

  • Method: POST
  • Endpoint: /users/register
  • Body:
    {
      "username": "Admin",
      "password": "admin123",
      "role": "admin"
    }

Admin-Register

2. Login

  • Method: POST
  • Endpoint: /users/login
  • Body:
    {
      "username": "Admin",
      "password": "admin123",
    }
    

Admin-Login

Admin Endpoints

1. Create a New Doctor

Create doctor

2. Get List of Patients and Their Assigned Doctors

List of Patients and Their Assigned Doctors

3. Get List of All Doctors and Their Schedules

All doctors and their schedule

Doctor Endpoints

1. Assign a Doctor to a Patient

Assign a doctor to a patient

2. Unassign a Doctor from a Patient

Unassign a doctor to a patient

3. Upload Test File

Upload test file

4. View Own Schedule

View Own schedule

Patient Endpoints

1. Create a New Patient

Create new patient

2. Assign a Patient to a Doctor

Assign a patient to a doctor

3. Unassign a Patient from a Doctor

Unassign a Patient from a Doctor

4. View Assigned Doctors

View Assigned Doctors

5. Schedule an Appointment

Schedule an Appointment

6. Cancel an Appointment

Cancel an Appointment

7. Change Appointment Status

Change Appointment Status

Pagination and Filtering

1. Pagination

pagination

2. Filtering

Filtering

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •