The DoctorAPP is developed using the Spring Framework, specifically Spring Boot, for building the backend of the application. The primary language used for development is Java.
The AppointmentController class handles incoming HTTP requests related to appointments and directs them to the appropriate service methods.
getAllAppointments(): This endpoint responds to a GET request to "/appointments" and returns a list of all appointments available in the application.
The DoctorController class handles incoming HTTP requests related to doctors and directs them to the appropriate service methods.
-
addDoctor(): This endpoint responds to a POST request to "/doctor" and adds a new Doctor object to the application based on the provided JSON data in the request body. -
getAllDoctors(): This endpoint responds to a GET request to "/doctors" and returns a list of all doctors available in the application.
The PatientController class handles incoming HTTP requests related to patients and directs them to the appropriate service methods.
-
signUpPatient(): This endpoint responds to a POST request to "/patient/signup" and signs up a new patient based on the provided patient data in the request body. -
signInPatient(): This endpoint responds to a POST request to "/patient/signIn" and handles patient sign-in using the provided credentials. -
sigOutPatient(): This endpoint responds to a DELETE request to "/patient/signOut" and signs out a patient based on the provided email and token in the request. -
getAllPatients(): This endpoint responds to a GET request to "/patients" and returns a list of all patients available in the application. -
scheduleAppointment(): This endpoint responds to a POST request to "/appointment/schedule" and schedules a new appointment for a patient based on the provided appointment data, email, and token in the request. -
cancelAppointment(): This endpoint responds to a DELETE request to "/appointment/cancel" and cancels an appointment for a patient based on the provided email and token in the request.
The Repository layer typically be implemented using Spring Data JPA. It manages the interactions with the underlying database and provides methods for CRUD operations on the entities.
The primary data structures used in the DoctorAPP project are Doctor, Patient, Appointment, SignInInput, and SignUpOutput classes, representing various entities and data transfer objects. These objects are managed and manipulated in lists and collections as needed.
The DoctorAPP is a backend application built using the Spring Framework with Java as the primary programming language. It provides various endpoints to manage doctors, patients, and appointments. Patients can sign up, sign in, and schedule or cancel appointments. Doctors can be added to the system, and appointments can be viewed. The project follows a structured data flow pattern, with controllers handling incoming requests, services implementing business logic, and a repository for data access to interact with the underlying database.
👤 Mohammad Ashif
- GitHub: Mohammad Ashif
Contributions, issues and feature requests are welcome.
Give a ⭐️ if this project helped you!
Copyright © 2023 Mohammad Ashif.