-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhospital-request.http
61 lines (49 loc) · 1.32 KB
/
hospital-request.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
### Create a doctor
POST http://localhost:9090/hospital/doctors
Content-Type: application/json
{
"id": 6,
"name": "Dr. House",
"specialty": "Neurologist",
"phoneNumber": "1234567890"
}
### Create a patient
POST http://localhost:9090/hospital/patients
Content-Type: application/json
{
"id": 6,
"name": "John Doe",
"age": 30,
"phoneNumber": "0771690000",
"gender": "MALE",
"address": "123, Main Street, Colombo 05"
}
### Create an appointment
POST http://localhost:9090/hospital/appointments
Content-Type: application/json
{
"id": 11,
"patientId": 1,
"doctorId": 1,
"appointmentTime": {
"year": 2023,
"month": 07,
"day": 01,
"hour": 10,
"minute": 30
},
"status": "SCHEDULED",
"reason": "Fever"
}
### Get all appointments for doctor 01 on 2023-07-01
GET http://localhost:9090/hospital/doctors/1/appointments?year=2023&month=07&day=01
### Get all doctors with specialty
GET http://localhost:9090/hospital/doctors
### Get patient details by id
GET http://localhost:9090/hospital/patients/1
### Update the status of the appointment
PATCH http://localhost:9090/hospital/appointments/11
Content-Type: application/json
"STARTED"
### Delete an appointment
DELETE http://localhost:9090/hospital/patients/1/appointments?year=2023&month=07&day=01