-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstrider-posterr.postman_collection.json
553 lines (553 loc) · 18.6 KB
/
strider-posterr.postman_collection.json
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
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
{
"info": {
"_postman_id": "1fcd9960-07c1-4b70-9e70-3bf12c670d0c",
"name": "strider-posterr",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Feed Usuário",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{HOST}}/users/:username/feed",
"host": [
"{{HOST}}"
],
"path": [
"users",
":username",
"feed"
],
"variable": [
{
"key": "username",
"value": "alucard"
}
]
}
},
"response": [
{
"name": "Feed Usuário",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{HOST}}/users/:username/feed?page=1&size=5",
"host": [
"{{HOST}}"
],
"path": [
"users",
":username",
"feed"
],
"query": [
{
"key": "page",
"value": "1"
},
{
"key": "size",
"value": "5"
}
],
"variable": [
{
"key": "username",
"value": "anderson"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": null,
"cookie": [],
"body": "{\n \"items\": [\n {\n \"id\": \"aeb17370-7de5-48b6-bf88-7e943df38c6e\",\n \"content\": \"Architecto quasi eaque. Aliquam consequatur dicta veniam sint rerum. Optio excepturi nemo totam atque non repudiandae facilis ducimus molestiae. Facilis sed vel ipsum esse aliquid.Consequatur qui excepturi incidunt ducimus non vero omnis provident. Minima eum quae quam labore. Enim assumenda accusantium recusandae omnis voluptas et rem.Consequuntur vitae vitae labore omnis totam minus doloremque itaque. Dicta voluptas adipisci quo et. Sit beatae sit sunt aut. Quos minima voluptatem. Omnis dolorum quo in dolorum et modi eligendi.{\",\n \"user_id\": \"4cfe67a9-defc-42b9-8410-cb5086bec2f5\",\n \"created_at\": \"2022-07-25T04:57:30.920Z\",\n \"is_quote\": false,\n \"is_repost\": false,\n \"original_post_id\": null,\n \"original_post_content\": null,\n \"original_post_user_id\": null,\n \"original_post_screen_name\": null\n },\n {\n \"id\": \"079b5173-f98e-40fb-8c1b-32b1b2b4d921\",\n \"content\": \"Facere est omnis cupiditate nostrum dolorum dolorem qui qui. Possimus est ut nam hic velit. Et officia explicabo doloremque repellendus aut.Quia porro odio quos. Voluptas voluptas consequuntur veritatis quae laudantium rem ut. Aperiam animi sit dolores similique et exercitationem non et voluptas. Quia dolorem ut quo et quia dolores.Voluptas dicta voluptas aut. Quam quibusdam iusto in occaecati saepe.{\",\n \"user_id\": \"4cfe67a9-defc-42b9-8410-cb5086bec2f5\",\n \"created_at\": \"2022-07-25T04:57:29.870Z\",\n \"is_quote\": false,\n \"is_repost\": false,\n \"original_post_id\": null,\n \"original_post_content\": null,\n \"original_post_user_id\": null,\n \"original_post_screen_name\": null\n },\n {\n \"id\": \"3ff5d025-2cce-492f-899c-f430f88df556\",\n \"content\": \"In architecto voluptas accusantium. Est voluptatum consequatur unde enim dolore eveniet non ad et. Ab nobis voluptatem. Voluptatum quia est odio ea dolores id quos et. Veniam voluptas vel.Cum aspernatur quibusdam non neque minima aut. Natus voluptatem ad dolores quod labore. Sed debitis asperiores eum quis rerum. Aut voluptas ea. Eum omnis expedita quia sit unde aut earum.Voluptas occaecati voluptatem sunt nobis dolor. Et impedit sed ut cumque qui et.{\",\n \"user_id\": \"4cfe67a9-defc-42b9-8410-cb5086bec2f5\",\n \"created_at\": \"2022-07-25T04:57:28.507Z\",\n \"is_quote\": false,\n \"is_repost\": false,\n \"original_post_id\": null,\n \"original_post_content\": null,\n \"original_post_user_id\": null,\n \"original_post_screen_name\": null\n },\n {\n \"id\": \"95aa4c9b-88e4-4bb5-96a4-28e3ce231103\",\n \"content\": \"Illum ut fuga quod. Veritatis nihil quod adipisci dolor voluptas. Optio adipisci aut voluptate quo neque est.Omnis est assumenda corrupti et autem modi est rerum dolorum. Consequatur odit fugiat eveniet aliquid omnis. Ut soluta aut minus vel quae.Aliquam beatae reprehenderit veritatis non molestiae. Asperiores debitis nostrum aut quod suscipit. Veniam culpa est numquam. Quod esse tempora laboriosam at soluta et dolore eum.{\",\n \"user_id\": \"4cfe67a9-defc-42b9-8410-cb5086bec2f5\",\n \"created_at\": \"2022-07-25T04:57:27.388Z\",\n \"is_quote\": false,\n \"is_repost\": false,\n \"original_post_id\": null,\n \"original_post_content\": null,\n \"original_post_user_id\": null,\n \"original_post_screen_name\": null\n },\n {\n \"id\": \"85832d67-5764-4046-af12-eb76815fdffa\",\n \"content\": \"Ea non ipsa deserunt natus pariatur et perspiciatis omnis. Aliquid ad debitis hic saepe accusamus.Non quasi illo qui saepe explicabo optio. Est a iusto dolores. Odit temporibus voluptatem ut quia ex. Nesciunt dignissimos ut quas deserunt dolor occaecati praesentium repudiandae.Qui aspernatur est eveniet. Reiciendis voluptatem amet sunt illum rerum. Aliquid est laudantium eos odio beatae dolor laborum quos sint.{\",\n \"user_id\": \"4cfe67a9-defc-42b9-8410-cb5086bec2f5\",\n \"created_at\": \"2022-07-25T04:44:41.142Z\",\n \"is_quote\": false,\n \"is_repost\": false,\n \"original_post_id\": null,\n \"original_post_content\": null,\n \"original_post_user_id\": null,\n \"original_post_screen_name\": null\n }\n ],\n \"total\": 5,\n \"per_page\": 5,\n \"last_page\": 1,\n \"current_page\": 1\n}"
},
{
"name": "Feed Usuário - usuário inexistente",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{HOST}}/users/:username/feed",
"host": [
"{{HOST}}"
],
"path": [
"users",
":username",
"feed"
],
"variable": [
{
"key": "username",
"value": "anderson"
}
]
}
},
"status": "Unprocessable Entity (WebDAV) (RFC 4918)",
"code": 422,
"_postman_previewlanguage": "json",
"header": null,
"cookie": [],
"body": "{\n \"errors\": \"User not found\"\n}"
}
]
},
{
"name": "Info Usuário",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{HOST}}/users/:username/info",
"host": [
"{{HOST}}"
],
"path": [
"users",
":username",
"info"
],
"variable": [
{
"key": "username",
"value": "anderson"
}
]
}
},
"response": [
{
"name": "Info Usuário",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{HOST}}/users/:username/info",
"host": [
"{{HOST}}"
],
"path": [
"users",
":username",
"info"
],
"variable": [
{
"key": "username",
"value": "anderson"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": null,
"cookie": [],
"body": "{\n \"username\": \"anderson\",\n \"joinedAt\": \"Jul 25, 2022\",\n \"totalPosts\": 0\n}"
}
]
},
{
"name": "Listar Posts",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{HOST}}/posts?size=10&all=false&user_id=4cfe67a9-defc-42b9-8410-cb5086bec2f5",
"host": [
"{{HOST}}"
],
"path": [
"posts"
],
"query": [
{
"key": "endDate",
"value": "2022-07-23",
"disabled": true
},
{
"key": "page",
"value": "2",
"disabled": true
},
{
"key": "size",
"value": "10"
},
{
"key": "all",
"value": "false"
},
{
"key": "user_id",
"value": "4cfe67a9-defc-42b9-8410-cb5086bec2f5"
}
]
}
},
"response": []
},
{
"name": "Criar post",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"{{$randomLoremSentences}}{{$randomLoremSentences}}{{$randomLoremSentences}}\",\n \"user_id\": \"b8903f77-5d16-4176-890f-f597594ff952\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{HOST}}/posts/create",
"host": [
"{{HOST}}"
],
"path": [
"posts",
"create"
]
}
},
"response": [
{
"name": "Criar post - Limite atingido",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"{{$randomLoremSentences}}{{$randomLoremSentences}}{{$randomLoremSentences}}{\",\n \"user_id\": \"4cfe67a9-defc-42b9-8410-cb5086bec2f5\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{HOST}}/posts/create",
"host": [
"{{HOST}}"
],
"path": [
"posts",
"create"
]
}
},
"status": "Unprocessable Entity (WebDAV) (RFC 4918)",
"code": 422,
"_postman_previewlanguage": "json",
"header": null,
"cookie": [],
"body": "{\n \"errors\": \"You reached your posts day limit \"\n}"
},
{
"name": "Criar post - Sucesso",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"{{$randomLoremSentences}}{{$randomLoremSentences}}{{$randomLoremSentences}}{\",\n \"user_id\": \"4cfe67a9-defc-42b9-8410-cb5086bec2f5\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{HOST}}/posts/create",
"host": [
"{{HOST}}"
],
"path": [
"posts",
"create"
]
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": null,
"cookie": [],
"body": "{\n \"id\": \"47f78f3d-6724-46dc-b22b-ebcd71033862\",\n \"content\": \"Eos praesentium aut quisquam. Animi sit aut velit nihil sunt explicabo ex.Perferendis quam consectetur aut aut saepe. Quo consectetur voluptate quod doloremque maiores sit modi et vel. Accusantium eum fuga repellat sint excepturi et maxime consectetur. Ullam quidem aut asperiores sit nemo sint.Ut numquam dolores error nesciunt. Eum eveniet ad atque voluptas dignissimos cupiditate quos deserunt. Qui laboriosam eos incidunt earum velit qui. Quia iusto pariatur fuga dicta ipsa eaque voluptatibus. Atque minus consequuntur repudiandae beatae.\",\n \"user_id\": \"b8903f77-5d16-4176-890f-f597594ff952\",\n \"created_at\": \"2022-07-25T05:00:40.265Z\",\n \"is_quote\": false,\n \"is_repost\": false,\n \"original_post_id\": null,\n \"original_post_content\": null,\n \"original_post_user_id\": null,\n \"original_post_screen_name\": null\n}"
}
]
},
{
"name": "Criar Repost",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"user_id\": \"4cfe67a9-defc-42b9-8410-cb5086bec2f5\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{HOST}}/posts/repost/:postId",
"host": [
"{{HOST}}"
],
"path": [
"posts",
"repost",
":postId"
],
"variable": [
{
"key": "postId",
"value": "47f78f3d-6724-46dc-b22b-ebcd71033862"
}
]
}
},
"response": [
{
"name": "Criar Repost - Inválido",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"user_id\": \"b8903f77-5d16-4176-890f-f597594ff952\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{HOST}}/posts/repost/:postId",
"host": [
"{{HOST}}"
],
"path": [
"posts",
"repost",
":postId"
],
"variable": [
{
"key": "postId",
"value": "7cc85bd2-0f28-4fc3-b0fa-7224c23433c3"
}
]
}
},
"status": "Unprocessable Entity (WebDAV) (RFC 4918)",
"code": 422,
"_postman_previewlanguage": "json",
"header": null,
"cookie": [],
"body": "{\n \"errors\": [\n \"It is not possible repost a repost post\"\n ]\n}"
},
{
"name": "Criar Repost - Sucesso",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"user_id\": \"b8903f77-5d16-4176-890f-f597594ff952\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{HOST}}/posts/repost/:postId",
"host": [
"{{HOST}}"
],
"path": [
"posts",
"repost",
":postId"
],
"variable": [
{
"key": "postId",
"value": "47f78f3d-6724-46dc-b22b-ebcd71033862"
}
]
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": null,
"cookie": [],
"body": "{\n \"id\": \"e6dc390c-9570-44fc-a498-4df0d559c971\",\n \"user_id\": \"4cfe67a9-defc-42b9-8410-cb5086bec2f5\",\n \"content\": null,\n \"created_at\": \"2022-07-25T05:05:22.717Z\",\n \"is_quote\": false,\n \"is_repost\": true,\n \"original_post_id\": \"47f78f3d-6724-46dc-b22b-ebcd71033862\",\n \"original_post_content\": \"Eos praesentium aut quisquam. Animi sit aut velit nihil sunt explicabo ex.Perferendis quam consectetur aut aut saepe. Quo consectetur voluptate quod doloremque maiores sit modi et vel. Accusantium eum fuga repellat sint excepturi et maxime consectetur. Ullam quidem aut asperiores sit nemo sint.Ut numquam dolores error nesciunt. Eum eveniet ad atque voluptas dignissimos cupiditate quos deserunt. Qui laboriosam eos incidunt earum velit qui. Quia iusto pariatur fuga dicta ipsa eaque voluptatibus. Atque minus consequuntur repudiandae beatae.\",\n \"original_post_user_id\": \"b8903f77-5d16-4176-890f-f597594ff952\",\n \"original_post_screen_name\": \"alucard\"\n}"
}
]
},
{
"name": "Criar Quote Post",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "quote",
"value": "Quote quote quote",
"type": "text"
},
{
"key": "user_id",
"value": "4cfe67a9-defc-42b9-8410-cb5086bec2f5",
"type": "text"
}
],
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{HOST}}/posts/quote/:postId",
"host": [
"{{HOST}}"
],
"path": [
"posts",
"quote",
":postId"
],
"variable": [
{
"key": "postId",
"value": "47f78f3d-6724-46dc-b22b-ebcd71033862"
}
]
}
},
"response": [
{
"name": "Criar Quote Post - Inválido",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "quote",
"value": "Quote quote quote",
"type": "text"
},
{
"key": "user_id",
"value": "b8903f77-5d16-4176-890f-f597594ff952",
"type": "text"
}
],
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{HOST}}/posts/quote/:postId",
"host": [
"{{HOST}}"
],
"path": [
"posts",
"quote",
":postId"
],
"variable": [
{
"key": "postId",
"value": "4b6ed69b-42f0-485b-9786-c492822b4556"
}
]
}
},
"status": "Unprocessable Entity (WebDAV) (RFC 4918)",
"code": 422,
"_postman_previewlanguage": "json",
"header": null,
"cookie": [],
"body": "{\n \"errors\": [\n \"It is not possible a quote post of a quote post\"\n ]\n}"
},
{
"name": "Criar Quote Post - Sucesso",
"originalRequest": {
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "quote",
"value": "Quote quote quote",
"type": "text"
},
{
"key": "user_id",
"value": "b8903f77-5d16-4176-890f-f597594ff952",
"type": "text"
}
],
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{HOST}}/posts/quote/:postId",
"host": [
"{{HOST}}"
],
"path": [
"posts",
"quote",
":postId"
],
"variable": [
{
"key": "postId",
"value": "4b6ed69b-42f0-485b-9786-c492822b4556"
}
]
}
},
"status": "Created",
"code": 201,
"_postman_previewlanguage": "json",
"header": null,
"cookie": [],
"body": "{\n \"id\": \"26b6425a-a626-4456-8cbc-981208999825\",\n \"user_id\": \"4cfe67a9-defc-42b9-8410-cb5086bec2f5\",\n \"content\": \"Quote quote quote\",\n \"created_at\": \"2022-07-25T05:03:05.213Z\",\n \"is_quote\": true,\n \"is_repost\": false,\n \"original_post_id\": \"47f78f3d-6724-46dc-b22b-ebcd71033862\",\n \"original_post_content\": \"Eos praesentium aut quisquam. Animi sit aut velit nihil sunt explicabo ex.Perferendis quam consectetur aut aut saepe. Quo consectetur voluptate quod doloremque maiores sit modi et vel. Accusantium eum fuga repellat sint excepturi et maxime consectetur. Ullam quidem aut asperiores sit nemo sint.Ut numquam dolores error nesciunt. Eum eveniet ad atque voluptas dignissimos cupiditate quos deserunt. Qui laboriosam eos incidunt earum velit qui. Quia iusto pariatur fuga dicta ipsa eaque voluptatibus. Atque minus consequuntur repudiandae beatae.\",\n \"original_post_user_id\": \"b8903f77-5d16-4176-890f-f597594ff952\",\n \"original_post_screen_name\": \"alucard\"\n}"
}
]
}
]
}