-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurl.sh
390 lines (318 loc) · 10.5 KB
/
curl.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
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
curl -X GET "localhost:8080/wp-commentmeta"
curl -X POST "localhost:8080/wp-commentmeta" -H 'Content-Type: application/json' -d'
{
"comment_id": 102,
"meta_key": "positive",
"meta_value": "Model media buy over authority impact such. For Democrat audience consider. Rather system few service believe."
}
'
curl -X POST "localhost:8080/wp-commentmeta/4754" -H 'Content-Type: application/json' -d'
{
"comment_id": 102,
"meta_id": 4754,
"meta_key": "positive",
"meta_value": "Model media buy over authority impact such. For Democrat audience consider. Rather system few service believe."
}
'
curl -X GET "localhost:8080/wp-commentmeta/4754"
curl -X DELETE "localhost:8080/wp-commentmeta/4754"
# --
curl -X GET "localhost:8080/wp-comments"
curl -X POST "localhost:8080/wp-comments" -H 'Content-Type: application/json' -d'
{
"comment_agent": "themselves",
"comment_approved": "tax",
"comment_author": "Product yard lay move officer.",
"comment_author_IP": "success",
"comment_author_email": "[email protected]",
"comment_author_url": "evidence",
"comment_content": "Policy morning decision professor politics health social. Price two entire price. Live billion control summer firm.",
"comment_date": "2021-09-27 19:58:57",
"comment_date_gmt": "2021-10-10 10:06:10",
"comment_karma": 3751,
"comment_parent": 6877,
"comment_post_ID": 20,
"comment_type": "themselves",
"user_id": 7628
}
'
curl -X POST "localhost:8080/wp-comments/2576" -H 'Content-Type: application/json' -d'
{
"comment_ID": 2576,
"comment_agent": "themselves",
"comment_approved": "tax",
"comment_author": "Product yard lay move officer.",
"comment_author_IP": "success",
"comment_author_email": "[email protected]",
"comment_author_url": "evidence",
"comment_content": "Policy morning decision professor politics health social. Price two entire price. Live billion control summer firm.",
"comment_date": "2021-09-27 19:58:57",
"comment_date_gmt": "2021-10-10 10:06:10",
"comment_karma": 3751,
"comment_parent": 6877,
"comment_post_ID": 20,
"comment_type": "themselves",
"user_id": 7628
}
'
curl -X GET "localhost:8080/wp-comments/2576"
curl -X DELETE "localhost:8080/wp-comments/2576"
# --
curl -X GET "localhost:8080/wp-links"
curl -X POST "localhost:8080/wp-links" -H 'Content-Type: application/json' -d'
{
"link_description": "behavior",
"link_image": "stock",
"link_name": "citizen",
"link_notes": "Buy security strategy management example imagine. Reality well many must subject.",
"link_owner": 8129,
"link_rating": 9225,
"link_rel": "learn",
"link_rss": "radio",
"link_target": "security",
"link_updated": "2021-10-06 09:30:51",
"link_url": "nation",
"link_visible": "pass"
}
'
curl -X POST "localhost:8080/wp-links/5809" -H 'Content-Type: application/json' -d'
{
"link_description": "behavior",
"link_id": 5809,
"link_image": "stock",
"link_name": "citizen",
"link_notes": "Buy security strategy management example imagine. Reality well many must subject.",
"link_owner": 8129,
"link_rating": 9225,
"link_rel": "learn",
"link_rss": "radio",
"link_target": "security",
"link_updated": "2021-10-06 09:30:51",
"link_url": "nation",
"link_visible": "pass"
}
'
curl -X GET "localhost:8080/wp-links/5809"
curl -X DELETE "localhost:8080/wp-links/5809"
# --
curl -X GET "localhost:8080/wp-options"
curl -X POST "localhost:8080/wp-options" -H 'Content-Type: application/json' -d'
{
"autoload": "indeed",
"option_name": "what",
"option_value": "With more both any tree you indicate. Five head more recent ten wish. Positive the also field."
}
'
curl -X POST "localhost:8080/wp-options/6361" -H 'Content-Type: application/json' -d'
{
"autoload": "indeed",
"option_id": 6361,
"option_name": "what",
"option_value": "With more both any tree you indicate. Five head more recent ten wish. Positive the also field."
}
'
curl -X GET "localhost:8080/wp-options/6361"
curl -X DELETE "localhost:8080/wp-options/6361"
# --
curl -X GET "localhost:8080/wp-postmeta"
curl -X POST "localhost:8080/wp-postmeta" -H 'Content-Type: application/json' -d'
{
"meta_key": "stand",
"meta_value": "Wife under star campaign reduce however. Wife already share force win month skill crime. Agency indeed full run.",
"post_id": 6936
}
'
curl -X POST "localhost:8080/wp-postmeta/7151" -H 'Content-Type: application/json' -d'
{
"meta_id": 7151,
"meta_key": "stand",
"meta_value": "Wife under star campaign reduce however. Wife already share force win month skill crime. Agency indeed full run.",
"post_id": 6936
}
'
curl -X GET "localhost:8080/wp-postmeta/7151"
curl -X DELETE "localhost:8080/wp-postmeta/7151"
# --
curl -X GET "localhost:8080/wp-posts"
curl -X POST "localhost:8080/wp-posts" -H 'Content-Type: application/json' -d'
{
"comment_status": "turn",
"guid": "produce",
"menu_order": 4457,
"ping_status": "current",
"pinged": "Whether real court loss believe.",
"post_author": 1911,
"post_content": "Himself someone offer chair evidence. Necessary scientist method speech. Majority child realize other. She culture travel peace.",
"post_content_filtered": "Production movie make despite board risk. Nice environmental population development team.",
"post_date": "2021-09-15 18:58:17",
"post_date_gmt": "2021-09-14 18:12:27",
"post_excerpt": "Ahead per bit.",
"post_mime_type": "never",
"post_modified": "2021-10-05 23:48:11",
"post_modified_gmt": "2021-09-17 20:58:12",
"post_name": "part",
"post_parent": 8891,
"post_password": "next",
"post_status": "try",
"post_title": "Southern bill range wife new mother those. Foot significant property argue school.",
"post_type": "commercial",
"to_ping": "Policy car carry. Either decide adult several join former."
}
'
curl -X POST "localhost:8080/wp-posts/734" -H 'Content-Type: application/json' -d'
{
"ID": 734,
"comment_status": "turn",
"guid": "produce",
"menu_order": 4457,
"ping_status": "current",
"pinged": "Whether real court loss believe.",
"post_author": 1911,
"post_content": "Himself someone offer chair evidence. Necessary scientist method speech. Majority child realize other. She culture travel peace.",
"post_content_filtered": "Production movie make despite board risk. Nice environmental population development team.",
"post_date": "2021-09-15 18:58:17",
"post_date_gmt": "2021-09-14 18:12:27",
"post_excerpt": "Ahead per bit.",
"post_mime_type": "never",
"post_modified": "2021-10-05 23:48:11",
"post_modified_gmt": "2021-09-17 20:58:12",
"post_name": "part",
"post_parent": 8891,
"post_password": "next",
"post_status": "try",
"post_title": "Southern bill range wife new mother those. Foot significant property argue school.",
"post_type": "commercial",
"to_ping": "Policy car carry. Either decide adult several join former."
}
'
curl -X GET "localhost:8080/wp-posts/734"
curl -X DELETE "localhost:8080/wp-posts/734"
# --
curl -X GET "localhost:8080/wp-term-relationships"
curl -X POST "localhost:8080/wp-term-relationships" -H 'Content-Type: application/json' -d'
{
"term_order": 6460,
"term_taxonomy_id": 4523
}
'
curl -X POST "localhost:8080/wp-term-relationships/9099" -H 'Content-Type: application/json' -d'
{
"object_id": 9099,
"term_order": 6460,
"term_taxonomy_id": 4523
}
'
curl -X GET "localhost:8080/wp-term-relationships/9099"
curl -X DELETE "localhost:8080/wp-term-relationships/9099"
# --
curl -X GET "localhost:8080/wp-term-taxonomy"
curl -X POST "localhost:8080/wp-term-taxonomy" -H 'Content-Type: application/json' -d'
{
"count": 5296,
"description": "Likely trip together thus. Suddenly security but while including.",
"parent": 4383,
"taxonomy": "section",
"term_id": 7772
}
'
curl -X POST "localhost:8080/wp-term-taxonomy/5382" -H 'Content-Type: application/json' -d'
{
"count": 5296,
"description": "Likely trip together thus. Suddenly security but while including.",
"parent": 4383,
"taxonomy": "section",
"term_id": 7772,
"term_taxonomy_id": 5382
}
'
curl -X GET "localhost:8080/wp-term-taxonomy/5382"
curl -X DELETE "localhost:8080/wp-term-taxonomy/5382"
# --
curl -X GET "localhost:8080/wp-termmeta"
curl -X POST "localhost:8080/wp-termmeta" -H 'Content-Type: application/json' -d'
{
"meta_key": "market",
"meta_value": "Stage see thousand newspaper subject some ready. Foot once break sometimes another.",
"term_id": 1725
}
'
curl -X POST "localhost:8080/wp-termmeta/8001" -H 'Content-Type: application/json' -d'
{
"meta_id": 8001,
"meta_key": "market",
"meta_value": "Stage see thousand newspaper subject some ready. Foot once break sometimes another.",
"term_id": 1725
}
'
curl -X GET "localhost:8080/wp-termmeta/8001"
curl -X DELETE "localhost:8080/wp-termmeta/8001"
# --
curl -X GET "localhost:8080/wp-terms"
curl -X POST "localhost:8080/wp-terms" -H 'Content-Type: application/json' -d'
{
"name": "late",
"slug": "hit",
"term_group": 4491
}
'
curl -X POST "localhost:8080/wp-terms/9595" -H 'Content-Type: application/json' -d'
{
"name": "late",
"slug": "hit",
"term_group": 4491,
"term_id": 9595
}
'
curl -X GET "localhost:8080/wp-terms/9595"
curl -X DELETE "localhost:8080/wp-terms/9595"
# --
curl -X GET "localhost:8080/wp-usermeta"
curl -X POST "localhost:8080/wp-usermeta" -H 'Content-Type: application/json' -d'
{
"meta_key": "itself",
"meta_value": "Sort model east front picture. Throw floor government stay former.",
"user_id": 2146
}
'
curl -X POST "localhost:8080/wp-usermeta/9655" -H 'Content-Type: application/json' -d'
{
"meta_key": "itself",
"meta_value": "Sort model east front picture. Throw floor government stay former.",
"umeta_id": 9655,
"user_id": 2146
}
'
curl -X GET "localhost:8080/wp-usermeta/9655"
curl -X DELETE "localhost:8080/wp-usermeta/9655"
# --
curl -X GET "localhost:8080/wp-users"
curl -X POST "localhost:8080/wp-users" -H 'Content-Type: application/json' -d'
{
"display_name": "despite",
"user_activation_key": "able",
"user_email": "[email protected]",
"user_login": "left",
"user_nicename": "body",
"user_pass": "member",
"user_registered": "2021-10-11 22:08:19",
"user_status": 8332,
"user_url": "college"
}
'
curl -X POST "localhost:8080/wp-users/5518" -H 'Content-Type: application/json' -d'
{
"ID": 5518,
"display_name": "despite",
"user_activation_key": "able",
"user_email": "[email protected]",
"user_login": "left",
"user_nicename": "body",
"user_pass": "member",
"user_registered": "2021-10-11 22:08:19",
"user_status": 8332,
"user_url": "college"
}
'
curl -X GET "localhost:8080/wp-users/5518"
curl -X DELETE "localhost:8080/wp-users/5518"
# --