-
Notifications
You must be signed in to change notification settings - Fork 1
/
requests.http
105 lines (88 loc) · 2.29 KB
/
requests.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
###
GET http://0.0.0.0:8081/api/test/b6673aee-c9d8-11ee-8491-029e9cf81533
###
GET http://0.0.0.0:8081/api/search_medications/advil
###
GET http://0.0.0.0:8081/api/search_medications/aspirin
###
GET http://0.0.0.0:8081/api/search_medications/0573-1769
###
GET http://0.0.0.0:8081/api/search_medications/0573-1769a
###
GET http://0.0.0.0:8081/api/get_medication/f70a8d20-570c-1e94-e053-6294a90ab66f
###
GET http://0.0.0.0:8081/api/get_medication/a
###
GET http://0.0.0.0:8081/api/schedule/b6673aee-c9d8-11ee-8491-029e9cf81533
###
POST http://0.0.0.0:8081/api/medication
Content-Type: application/json
{
"patient_id": "b6673aee-c9d8-11ee-8491-029e9cf81533",
"cabinet_id": "b45569c2-c9d9-11ee-8491-029e9cf81533",
"medications": [
{
"medication_id": "f70a8d20-570c-1e94-e053-6294a90ab66f",
"box": 0,
"quantity": 100
},
{
"medication_id": "f70a8d20-570c-1e94-e053-6294a90ab66f",
"box": 1,
"quantity": 2
},
{
"medication_id": "12c38d55-27d3-4060-8563-42aafa17d586",
"box": 7,
"quantity": 39
}
]
}
###
POST http://0.0.0.0:8081/api/schedule
Content-Type: application/json
{
"patient_id": "b6673aee-c9d8-11ee-8491-029e9cf81533",
"cabinet_id": "b45569c2-c9d9-11ee-8491-029e9cf81533",
"medications": [
{
"medication_id": "f70a8d20-570c-1e94-e053-6294a90ab66f",
"day": 1,
"time": "11:30"
},
{
"medication_id": "f70a8d20-570c-1e94-e053-6294a90ab66f",
"day": 1,
"time": "16:30"
},
{
"medication_id": "12c38d55-27d3-4060-8563-42aafa17d586",
"day": 4,
"time": "11:30"
}
]
}
###
POST http://0.0.0.0:8081/api/session
Content-Type: application/json
{
"patient_id": "b6673aee-c9d8-11ee-8491-029e9cf81533",
"cabinet_id": "b45569c2-c9d9-11ee-8491-029e9cf81533",
"alarm_time": "2023-05-24 05:45:00",
"start_time": "2023-05-24 05:50:00",
"end_time": "2023-05-24 05:50:50",
"session_intakes": [
{
"medication_id": "f70a8d20-570c-1e94-e053-6294a90ab66f",
"start_time": "2023-05-24 05:50:00",
"end_time": "2023-05-24 05:50:10",
"ingested": true
},
{
"medication_id": "12c38d55-27d3-4060-8563-42aafa17d586",
"start_time": "2023-05-24 05:50:10",
"end_time": "2023-05-24 05:50:20",
"ingested": true
}
]
}