This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
populate-db.http
183 lines (142 loc) · 3.19 KB
/
populate-db.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
POST localhost:8080/api/v1/addresses/
content-type: application/json
{
"latitude": 30,
"longitude": 29,
"countryCode": "TUR",
"city": "Ankara",
"region": "Etimesgut",
"addressLine": "Merkez, Öncü Mahallesi",
"addressDetails": "67/1",
"contactPhone": "+909998887777"
}
###
POST localhost:8080/api/v1/addresses/
content-type: application/json
{
"latitude": 27,
"longitude": 26,
"countryCode": "TUR",
"city": "İstanbul",
"region": "Beylikdüzü",
"addressLine": "Atatürk Mahallesi",
"addressDetails": "12/1",
"contactPhone": "+90 555 555 55 55"
}
###
POST localhost:8080/api/v1/addresses/
content-type: application/json
{
"latitude": 28,
"longitude": 28,
"countryCode": "TUR",
"city": "Giresun",
"region": "Merkez",
"addressLine": "Kümbet Mahallesi",
"addressDetails": "Kemençe Sokak",
"contactPhone": "+90 028 028 28 28"
}
###
POST localhost:8080/api/v1/stores/
content-type: application/json
{
"name": "Gokdeniz's Kebab World",
"email": "[email protected]",
"phone": "+12 345 678 9101",
"storeType": "FOOD_STORE",
"addressId": 2
}
###
POST localhost:8080/api/v1/stores/
content-type: application/json
{
"name": "Nuri Burger",
"email": "[email protected]",
"phone": "+212 000 00 00",
"storeType": "FOOD_STORE",
"addressId": 3
}
###
POST localhost:8080/api/v1/buyers/
content-type: application/json
{
"name": "Ahmety",
"surname": "",
"email": "[email protected]",
"phone": "+13 131 313 1313",
"birthdate": "1980-01-01"
}
###
POST localhost:8080/api/v1/buyers/
content-type: application/json
{
"name": "Mehmet",
"surname": "Yılmaz",
"email": "[email protected]",
"phone": "+90 0000 000 000",
"birthdate": "2010-03-15"
}
###
POST localhost:8080/api/v1/reviews/
content-type: application/json
{
"rating": "EXCELLENT",
"experience": "Oh that lavaş was so crispy and delicious. I loved it!",
"buyerId": 1,
"storeId": 1
}
###
POST localhost:8080/api/v1/reviews/
content-type: application/json
{
"rating": "DECENT",
"experience": "I think it was okay. I would prefer a different place next time.",
"buyerId": 2,
"storeId": 1
}
###
POST localhost:8080/api/v1/reviews/
content-type: application/json
{
"rating": "EXCELLENT",
"experience": "I loved the burger. It was so juicy and delicious.",
"buyerId": 2,
"storeId": 2
}
###
POST localhost:8080/api/v1/reviews/
content-type: application/json
{
"rating": "EXCELLENT",
"experience": "I loved the burger. It was so juicy and delicious.",
"buyerId": 1,
"storeId": 2
}
###
POST localhost:8080/api/v1/reviews/
content-type: application/json
{
"rating": "POOR",
"experience": "Don't eat from here, all reviews are fake, all of them are bots, it tastes like ****, I spent my entire night at hospital!",
"buyerId": 1,
"storeId": 2
}
###
POST localhost:8080/api/v1/reviews/
content-type: application/json
{
"rating": "SATISFACTORY",
"experience": "You cannot find better Doner Kebab in the city. I loved it!",
"buyerId": 1,
"storeId": 1
}
###
POST localhost:8080/api/v1/reviews/
content-type: application/json
{
"rating": "LACKING",
"experience": "Sure, it was okay. But I have eaten better.",
"buyerId": 1,
"storeId": 2
}
###