Skip to content

mdjolieca/interviewDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo Application for Interview

Requirements

You are in charge of developing the REST API of a simplified online medical appointment booking application. After careful analysis, you conclude that you will have to implement the following features:

• A patient can search for the different providers of the clinic

• A patient can look for the availabilities of a specific provider within a defined time interval (for instance, the availabilities of Dr. A between May 8th, 2019 and May 12th, 2019)

• A patient can book an appointment with a provider by selecting one of their availabilities

Implement a simplified REST API that will support the aforementioned features.

Overview

Project was created with:

  • Spring Boot
  • Prostgres Database
  • Project can be run from IDE as a Spring Boot Application, All tables will be created and populated with some data. Before running you must set your database properties in the application.properties file.

Apis for testing with default data

provider apis

http://localhost:8080/api/v1/providers

http://localhost:8080/api/v1/providers/?id=CharlesDarwin

http://localhost:8080/api/v1/providers/getByFirstName?name=Charles

http://localhost:8080/api/v1/providers/getByLastName?name=Darwin

patient apis

http://localhost:8080/api/v1/patients

Availability apis

http://localhost:8080/api/v1/availabilites

http://localhost:8080/api/v1/availabilites/?id=2

http://localhost:8080/api/v1/availabilites/getByDates?providerId=CharlesDarwin&startDate=2021-01-02T15:00&endDate=2022-01-02T15:00

Appointment apis

http://localhost:8080/api/v1/appointments

http://localhost:8080/api/v1/appointments/bookAppointment?availabilityId=2&patientId=JohnSmith

About

Interview Demo Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages