-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmock_data.sh
113 lines (97 loc) · 2.21 KB
/
mock_data.sh
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
103
104
105
106
107
108
109
110
111
112
113
curl -X 'POST' \
'http://localhost:8000/hospitals' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"name": "Ibn Sina"
}'
curl -X 'POST' \
'http://localhost:8000/branches' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"hospital_id": 1,
"address": "Zigatola",
"phone": "16231",
"email": "[email protected]"
}'
curl -X 'POST' \
'http://localhost:8000/users/sign-up' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"user_name": "tu-1",
"password": "123",
"full_name": "Test User 1",
"email": "[email protected]",
"phone": "01611496418",
"dob": "2013-03-02",
"gender": 1,
"blood_group": 5
}'
curl -X 'POST' \
'http://localhost:8000/users/sign-up' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"user_name": "tu-2",
"password": "123",
"full_name": "Test User 2",
"email": "[email protected]",
"phone": "01611496418",
"dob": "2013-03-02",
"gender": 2,
"blood_group": 3
}'
curl -X 'POST' \
'http://localhost:8000/departments' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"name": "Medicine"
}'
curl -X 'POST' \
'http://localhost:8000/doctors' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"user_id": 1,
"dept_id": 1,
"registration_no": 123,
"degree": "MBBS, FCPS, MD",
"experience": "Head of the Dept of Medicine"
}'
curl -X 'POST' \
'http://localhost:8000/branch-depts' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"branch_id": 1,
"dept_id": 1
}'
curl -X 'POST' \
'http://localhost:8000/work-places' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"branch_id": 1,
"employee_id": 1,
"start_date": "2022-01-01"
}'
curl -X 'POST' \
'http://localhost:8000/slots' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"start_at": "5 PM",
"end_at": "10 PM"
}'
curl -X 'POST' \
'http://localhost:8000/slot-schedules' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"slot_id": 1,
"work_place_id": 1,
"day": 1
}'