Skip to content

dkm199/WebApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#compile

  1. sbt compile

#This runs web server 2) sbt run

#use curl commands below

To Add doctor (returns doctor Id)

curl -X POST "https://localhost:8080/doctors?firstName=SomeName&lastName=LastName"

To see doctors

curl -X GET https://localhost:8080/doctors

To Add Appointment (Allowed pTypes = "NewPatient" Or "FollowUp") (returns appt id)

(I would have made this json instead of queries, if time permitted) curl -X POST "https://localhost:8080/doctor/appointment?doctorId=0&startTime=1537650000000&duration=5&firstName=dds&lastName=433&pType=NewPatient"

To Get Appointments for a given day and given doctor

curl -X GET "https://localhost:8080/doctor/appointment?doctorId=0&day=1537650000000"

To Delete an appointment

curl -X DELETE "https://localhost:8080/doctor/appointment?doctorId=0&appointmentId=0"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published