Skip to content

This Django REST Framework-based API enables the management of appointments between doctors and patients, supporting CRUD operations for appointment entities.

Notifications You must be signed in to change notification settings

dilalipk/hospital-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doctor-Patient Appointment API

Welcome to the Doctor-Patient Appointment API documentation. This API, built using Django REST Framework, facilitates the management of doctor-patient appointments.

Overview

The Doctor-Patient Appointment API allows for the creation, retrieval, updating, and deletion of appointments between doctors and patients.

Features

  • Create, retrieve, update, and delete appointments
  • Retrieve lists of doctors, patients, and appointments
  • Error handling

Endpoints

Doctors

  • GET /api/doctors/: Retrieve a list of all doctors
  • POST /api/doctors/: Create a new doctor profile
  • GET /api/doctors/<pk>/: Retrieve details of a specific doctor
  • PUT /api/doctors/<pk>/: Update details of a specific doctor
  • DELETE /api/doctors/<pk>/: Delete a doctor profile

Patients

  • GET /api/patients/: Retrieve a list of all patients
  • POST /api/patients/: Create a new patient profile
  • GET /api/patients/<pk>/: Retrieve details of a specific patient
  • PUT /api/patients/<pk>/: Update details of a specific patient
  • DELETE /api/patients/<pk>/: Delete a patient profile

Appointments

  • GET /appointments/: Retrieve a list of all appointments
  • POST /api/appointments/: Create a new appointment
  • GET /api/appointments/<pk>/: Retrieve details of a specific appointment
  • PUT /api/appointments/<pk>/: Update details of a specific appointment
  • DELETE /api/appointments/<pk>/: Cancel a specific appointment

Error Handling

The API provides error handling, returning appropriate HTTP status codes and error messages to aid in debugging and troubleshooting.

About

This Django REST Framework-based API enables the management of appointments between doctors and patients, supporting CRUD operations for appointment entities.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages