Skip to content

Commit 311a3ac

Browse files
Comments (showAll - add - edit - delete)
1 parent 010f68c commit 311a3ac

File tree

9 files changed

+349
-40
lines changed

9 files changed

+349
-40
lines changed

Codelink.postman_collection.json

Lines changed: 242 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
"bearer": [
318318
{
319319
"key": "token",
320-
"value": "1|G5LsDwISHXWKd8KtXi67V6k1F9YUungOoTYwqZ0m",
320+
"value": "1|DZu0Q0HEtqM18Sn1Xt7GYJPoNsKg50WPNQkUF0vb",
321321
"type": "string"
322322
}
323323
]
@@ -339,6 +339,38 @@
339339
},
340340
"response": []
341341
},
342+
{
343+
"name": "posts/user",
344+
"request": {
345+
"auth": {
346+
"type": "bearer",
347+
"bearer": [
348+
{
349+
"key": "token",
350+
"value": "1|NpVE3izi4ZTMzabaHzUJHyDMGSm91Jnt3hSiRnw2",
351+
"type": "string"
352+
}
353+
]
354+
},
355+
"method": "GET",
356+
"header": [],
357+
"url": {
358+
"raw": "http://localhost:8000/api/posts/user/1",
359+
"protocol": "http",
360+
"host": [
361+
"localhost"
362+
],
363+
"port": "8000",
364+
"path": [
365+
"api",
366+
"posts",
367+
"user",
368+
"1"
369+
]
370+
}
371+
},
372+
"response": []
373+
},
342374
{
343375
"name": "posts/create",
344376
"request": {
@@ -347,7 +379,7 @@
347379
"bearer": [
348380
{
349381
"key": "token",
350-
"value": "1|TWIwa7od8VtgAanjieMZoVEOiM0hV57tTZsUqXXe",
382+
"value": "1|DZu0Q0HEtqM18Sn1Xt7GYJPoNsKg50WPNQkUF0vb",
351383
"type": "string"
352384
}
353385
]
@@ -371,13 +403,13 @@
371403
"formdata": [
372404
{
373405
"key": "content",
374-
"value": "zamalek",
406+
"value": "Zamalek",
375407
"type": "text"
376408
},
377409
{
378410
"key": "file_path",
379411
"type": "file",
380-
"src": "/E:/Photos/IMG_20230102_040115_692.jpg"
412+
"src": []
381413
}
382414
]
383415
},
@@ -408,7 +440,7 @@
408440
"bearer": [
409441
{
410442
"key": "token",
411-
"value": "1|TWIwa7od8VtgAanjieMZoVEOiM0hV57tTZsUqXXe",
443+
"value": "1|DZu0Q0HEtqM18Sn1Xt7GYJPoNsKg50WPNQkUF0vb",
412444
"type": "string"
413445
}
414446
]
@@ -432,7 +464,7 @@
432464
"formdata": []
433465
},
434466
"url": {
435-
"raw": "http://localhost:8000/api/posts/show/2",
467+
"raw": "http://localhost:8000/api/posts/show/1",
436468
"protocol": "http",
437469
"host": [
438470
"localhost"
@@ -442,7 +474,7 @@
442474
"api",
443475
"posts",
444476
"show",
445-
"2"
477+
"1"
446478
]
447479
}
448480
},
@@ -486,13 +518,13 @@
486518
{
487519
"key": "file_path",
488520
"type": "file",
489-
"src": [],
521+
"src": "/E:/Photos/IMG_20230102_040115_692.jpg",
490522
"disabled": true
491523
}
492524
]
493525
},
494526
"url": {
495-
"raw": "http://localhost:8000/api/posts/edit/1",
527+
"raw": "http://localhost:8000/api/posts/edit/11",
496528
"protocol": "http",
497529
"host": [
498530
"localhost"
@@ -502,7 +534,7 @@
502534
"api",
503535
"posts",
504536
"edit",
505-
"1"
537+
"11"
506538
]
507539
}
508540
},
@@ -516,7 +548,7 @@
516548
"bearer": [
517549
{
518550
"key": "token",
519-
"value": "1|TWIwa7od8VtgAanjieMZoVEOiM0hV57tTZsUqXXe",
551+
"value": "1|NpVE3izi4ZTMzabaHzUJHyDMGSm91Jnt3hSiRnw2",
520552
"type": "string"
521553
}
522554
]
@@ -556,6 +588,202 @@
556588
},
557589
"response": []
558590
},
591+
{
592+
"name": "comments",
593+
"request": {
594+
"auth": {
595+
"type": "bearer",
596+
"bearer": [
597+
{
598+
"key": "token",
599+
"value": "1|DZu0Q0HEtqM18Sn1Xt7GYJPoNsKg50WPNQkUF0vb",
600+
"type": "string"
601+
}
602+
]
603+
},
604+
"method": "GET",
605+
"header": [],
606+
"url": {
607+
"raw": "http://localhost:8000/api/posts/1/comments",
608+
"protocol": "http",
609+
"host": [
610+
"localhost"
611+
],
612+
"port": "8000",
613+
"path": [
614+
"api",
615+
"posts",
616+
"1",
617+
"comments"
618+
]
619+
}
620+
},
621+
"response": []
622+
},
623+
{
624+
"name": "comments/create",
625+
"request": {
626+
"auth": {
627+
"type": "bearer",
628+
"bearer": [
629+
{
630+
"key": "token",
631+
"value": "1|DZu0Q0HEtqM18Sn1Xt7GYJPoNsKg50WPNQkUF0vb",
632+
"type": "string"
633+
}
634+
]
635+
},
636+
"method": "POST",
637+
"header": [
638+
{
639+
"key": "Accept",
640+
"value": "application/json",
641+
"type": "text"
642+
},
643+
{
644+
"warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman.",
645+
"key": "Authorization",
646+
"value": "application/json",
647+
"type": "text"
648+
}
649+
],
650+
"body": {
651+
"mode": "formdata",
652+
"formdata": [
653+
{
654+
"key": "content",
655+
"value": "mm",
656+
"type": "text"
657+
}
658+
]
659+
},
660+
"url": {
661+
"raw": "http://localhost:8000/api/posts/1/comments/create",
662+
"protocol": "http",
663+
"host": [
664+
"localhost"
665+
],
666+
"port": "8000",
667+
"path": [
668+
"api",
669+
"posts",
670+
"1",
671+
"comments",
672+
"create"
673+
]
674+
}
675+
},
676+
"response": []
677+
},
678+
{
679+
"name": "comments/edit",
680+
"request": {
681+
"auth": {
682+
"type": "bearer",
683+
"bearer": [
684+
{
685+
"key": "token",
686+
"value": "1|DZu0Q0HEtqM18Sn1Xt7GYJPoNsKg50WPNQkUF0vb",
687+
"type": "string"
688+
}
689+
]
690+
},
691+
"method": "POST",
692+
"header": [
693+
{
694+
"key": "Accept",
695+
"value": "application/json",
696+
"type": "text"
697+
},
698+
{
699+
"warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman.",
700+
"key": "Authorization",
701+
"value": "application/json",
702+
"type": "text"
703+
}
704+
],
705+
"body": {
706+
"mode": "formdata",
707+
"formdata": [
708+
{
709+
"key": "content",
710+
"value": "nnnnn",
711+
"type": "text"
712+
}
713+
]
714+
},
715+
"url": {
716+
"raw": "http://localhost:8000/api/posts/1/comments/edit/1",
717+
"protocol": "http",
718+
"host": [
719+
"localhost"
720+
],
721+
"port": "8000",
722+
"path": [
723+
"api",
724+
"posts",
725+
"1",
726+
"comments",
727+
"edit",
728+
"1"
729+
]
730+
}
731+
},
732+
"response": []
733+
},
734+
{
735+
"name": "comments/delete",
736+
"protocolProfileBehavior": {
737+
"disableBodyPruning": true
738+
},
739+
"request": {
740+
"auth": {
741+
"type": "bearer",
742+
"bearer": [
743+
{
744+
"key": "token",
745+
"value": "1|DZu0Q0HEtqM18Sn1Xt7GYJPoNsKg50WPNQkUF0vb",
746+
"type": "string"
747+
}
748+
]
749+
},
750+
"method": "GET",
751+
"header": [
752+
{
753+
"key": "Accept",
754+
"value": "application/json",
755+
"type": "text"
756+
},
757+
{
758+
"warning": "This is a duplicate header and will be overridden by the Authorization header generated by Postman.",
759+
"key": "Authorization",
760+
"value": "application/json",
761+
"type": "text"
762+
}
763+
],
764+
"body": {
765+
"mode": "formdata",
766+
"formdata": []
767+
},
768+
"url": {
769+
"raw": "http://localhost:8000/api/posts/1/comments/delete/1",
770+
"protocol": "http",
771+
"host": [
772+
"localhost"
773+
],
774+
"port": "8000",
775+
"path": [
776+
"api",
777+
"posts",
778+
"1",
779+
"comments",
780+
"delete",
781+
"1"
782+
]
783+
}
784+
},
785+
"response": []
786+
},
559787
{
560788
"name": "teams",
561789
"request": {
@@ -564,7 +792,7 @@
564792
"bearer": [
565793
{
566794
"key": "token",
567-
"value": "1|dWgrMHGnLnqhnptvnMR8v4gaCC2Ura5jk9KCvhOQ",
795+
"value": "1|DZu0Q0HEtqM18Sn1Xt7GYJPoNsKg50WPNQkUF0vb",
568796
"type": "string"
569797
}
570798
]
@@ -644,7 +872,7 @@
644872
"bearer": [
645873
{
646874
"key": "token",
647-
"value": "16|a4FNOWreMKmj8vuOrJIShaqRcZU4eIDldMzbyae7",
875+
"value": "1|DZu0Q0HEtqM18Sn1Xt7GYJPoNsKg50WPNQkUF0vb",
648876
"type": "string"
649877
}
650878
]
@@ -668,7 +896,7 @@
668896
"formdata": [
669897
{
670898
"key": "name",
671-
"value": "zamalek",
899+
"value": "nnnnnnnnnn",
672900
"type": "text"
673901
},
674902
{

0 commit comments

Comments
 (0)