|
561 | 561 | "tags": [
|
562 | 562 | "Users"
|
563 | 563 | ],
|
| 564 | + "parameters": [ |
| 565 | + { |
| 566 | + "name": "userId", |
| 567 | + "in": "path", |
| 568 | + "description": "The ID of user (uint64)", |
| 569 | + "required": true, |
| 570 | + "schema": { |
| 571 | + "type": "integer", |
| 572 | + "example": "13" |
| 573 | + } |
| 574 | + } |
| 575 | + ], |
564 | 576 | "responses": {
|
565 | 577 | "200": {
|
566 | 578 | "description": "The user details returned successfully.",
|
|
600 | 612 | "get": {
|
601 | 613 | "summary": "Index user followings",
|
602 | 614 | "description": "Index the followings of the user.",
|
| 615 | + "tags": [ |
| 616 | + "Users" |
| 617 | + ], |
603 | 618 | "parameters": [
|
| 619 | + { |
| 620 | + "name": "userId", |
| 621 | + "in": "path", |
| 622 | + "description": "The ID of user (uint64)", |
| 623 | + "required": true, |
| 624 | + "schema": { |
| 625 | + "type": "integer", |
| 626 | + "example": "13" |
| 627 | + } |
| 628 | + }, |
604 | 629 | {
|
605 | 630 | "name": "count",
|
606 | 631 | "in": "query",
|
|
615 | 640 | {
|
616 | 641 | "name": "lastId",
|
617 | 642 | "in": "query",
|
618 |
| - "description": "ID of the last item retrieved", |
| 643 | + "description": "The ID of the last item retrieved", |
619 | 644 | "required": false,
|
620 | 645 | "schema": {
|
621 | 646 | "type": "integer",
|
622 |
| - "example": 13 |
| 647 | + "example": 13, |
| 648 | + "default": null |
623 | 649 | }
|
624 | 650 | }
|
625 | 651 | ],
|
626 |
| - "tags": [ |
627 |
| - "Users" |
628 |
| - ], |
629 | 652 | "responses": {
|
630 | 653 | "200": {
|
631 | 654 | "description": "List of user followings returned successfully.",
|
|
656 | 679 | "Users"
|
657 | 680 | ],
|
658 | 681 | "parameters": [
|
| 682 | + { |
| 683 | + "name": "userId", |
| 684 | + "in": "path", |
| 685 | + "description": "The ID of user (uint64)", |
| 686 | + "required": true, |
| 687 | + "schema": { |
| 688 | + "type": "integer", |
| 689 | + "example": "13" |
| 690 | + } |
| 691 | + }, |
659 | 692 | {
|
660 | 693 | "name": "count",
|
661 | 694 | "in": "query",
|
|
670 | 703 | {
|
671 | 704 | "name": "lastId",
|
672 | 705 | "in": "query",
|
673 |
| - "description": "ID of the last item retrieved", |
| 706 | + "description": "The ID of the last item retrieved", |
674 | 707 | "required": false,
|
675 | 708 | "schema": {
|
676 | 709 | "type": "integer",
|
677 |
| - "example": 13 |
| 710 | + "example": 13, |
| 711 | + "default": null |
678 | 712 | }
|
679 | 713 | }
|
680 | 714 | ],
|
|
705 | 739 | "tags": [
|
706 | 740 | "Users"
|
707 | 741 | ],
|
| 742 | + "parameters": [ |
| 743 | + { |
| 744 | + "name": "userId", |
| 745 | + "in": "path", |
| 746 | + "description": "The ID of user (uint64)", |
| 747 | + "required": true, |
| 748 | + "schema": { |
| 749 | + "type": "integer", |
| 750 | + "example": "13" |
| 751 | + } |
| 752 | + } |
| 753 | + ], |
708 | 754 | "responses": {
|
709 | 755 | "201": {
|
710 | 756 | "description": "The user followed successfully."
|
|
717 | 763 | "tags": [
|
718 | 764 | "Users"
|
719 | 765 | ],
|
| 766 | + "parameters": [ |
| 767 | + { |
| 768 | + "name": "userId", |
| 769 | + "in": "path", |
| 770 | + "description": "The ID of user (uint64)", |
| 771 | + "required": true, |
| 772 | + "schema": { |
| 773 | + "type": "integer", |
| 774 | + "example": "13" |
| 775 | + } |
| 776 | + } |
| 777 | + ], |
720 | 778 | "responses": {
|
721 | 779 | "204": {
|
722 | 780 | "description": "The user unfollowed successfully."
|
|
731 | 789 | "tags": [
|
732 | 790 | "Posts"
|
733 | 791 | ],
|
| 792 | + "parameters": [ |
| 793 | + { |
| 794 | + "name": "userId", |
| 795 | + "in": "path", |
| 796 | + "description": "The ID of user (uint64)", |
| 797 | + "required": true, |
| 798 | + "schema": { |
| 799 | + "type": "integer", |
| 800 | + "example": "13" |
| 801 | + } |
| 802 | + }, |
| 803 | + { |
| 804 | + "name": "count", |
| 805 | + "in": "query", |
| 806 | + "description": "Number of items to retrieve", |
| 807 | + "required": false, |
| 808 | + "schema": { |
| 809 | + "type": "integer", |
| 810 | + "example": 5, |
| 811 | + "default": 10 |
| 812 | + } |
| 813 | + }, |
| 814 | + { |
| 815 | + "name": "lastId", |
| 816 | + "in": "query", |
| 817 | + "description": "The ID of the last item retrieved", |
| 818 | + "required": false, |
| 819 | + "schema": { |
| 820 | + "type": "integer", |
| 821 | + "example": 13, |
| 822 | + "default": null |
| 823 | + } |
| 824 | + } |
| 825 | + ], |
734 | 826 | "responses": {
|
735 | 827 | "200": {
|
736 | 828 | "description": "List of the user posts returned successfully.",
|
|
796 | 888 | "tags": [
|
797 | 889 | "Posts"
|
798 | 890 | ],
|
| 891 | + "parameters": [ |
| 892 | + { |
| 893 | + "name": "postId", |
| 894 | + "in": "path", |
| 895 | + "description": "The ID of post (uint64)", |
| 896 | + "required": true, |
| 897 | + "schema": { |
| 898 | + "type": "integer", |
| 899 | + "example": "13" |
| 900 | + } |
| 901 | + } |
| 902 | + ], |
799 | 903 | "responses": {
|
800 | 904 | "201": {
|
801 | 905 | "description": "The post returned successfully.",
|
|
820 | 924 | "tags": [
|
821 | 925 | "Posts"
|
822 | 926 | ],
|
| 927 | + "parameters": [ |
| 928 | + { |
| 929 | + "name": "postId", |
| 930 | + "in": "path", |
| 931 | + "description": "The ID of post (uint64)", |
| 932 | + "required": true, |
| 933 | + "schema": { |
| 934 | + "type": "integer", |
| 935 | + "example": "13" |
| 936 | + } |
| 937 | + } |
| 938 | + ], |
823 | 939 | "requestBody": {
|
824 | 940 | "required": true,
|
825 | 941 | "content": {
|
|
866 | 982 | "tags": [
|
867 | 983 | "Posts"
|
868 | 984 | ],
|
| 985 | + "parameters": [ |
| 986 | + { |
| 987 | + "name": "postId", |
| 988 | + "in": "path", |
| 989 | + "description": "The ID of post (uint64)", |
| 990 | + "required": true, |
| 991 | + "schema": { |
| 992 | + "type": "integer", |
| 993 | + "example": "13" |
| 994 | + } |
| 995 | + } |
| 996 | + ], |
869 | 997 | "responses": {
|
870 | 998 | "204": {
|
871 | 999 | "description": "The post deleted successfully."
|
|
881 | 1009 | "Likes"
|
882 | 1010 | ],
|
883 | 1011 | "parameters": [
|
| 1012 | + { |
| 1013 | + "name": "postId", |
| 1014 | + "in": "path", |
| 1015 | + "description": "The ID of post (uint64)", |
| 1016 | + "required": true, |
| 1017 | + "schema": { |
| 1018 | + "type": "integer", |
| 1019 | + "example": "13" |
| 1020 | + } |
| 1021 | + }, |
884 | 1022 | {
|
885 | 1023 | "name": "count",
|
886 | 1024 | "in": "query",
|
|
899 | 1037 | "required": false,
|
900 | 1038 | "schema": {
|
901 | 1039 | "type": "integer",
|
902 |
| - "example": 13 |
| 1040 | + "example": 13, |
| 1041 | + "default": null |
903 | 1042 | }
|
904 | 1043 | }
|
905 | 1044 | ],
|
|
930 | 1069 | "tags": [
|
931 | 1070 | "Likes"
|
932 | 1071 | ],
|
| 1072 | + "parameters": [ |
| 1073 | + { |
| 1074 | + "name": "postId", |
| 1075 | + "in": "path", |
| 1076 | + "description": "The ID of post (uint64)", |
| 1077 | + "required": true, |
| 1078 | + "schema": { |
| 1079 | + "type": "integer", |
| 1080 | + "example": "13" |
| 1081 | + } |
| 1082 | + } |
| 1083 | + ], |
933 | 1084 | "responses": {
|
934 | 1085 | "201": {
|
935 | 1086 | "description": "The post liked successfully."
|
|
944 | 1095 | "tags": [
|
945 | 1096 | "Likes"
|
946 | 1097 | ],
|
| 1098 | + "parameters": [ |
| 1099 | + { |
| 1100 | + "name": "likeId", |
| 1101 | + "in": "path", |
| 1102 | + "description": "The ID of like (uint64)", |
| 1103 | + "required": true, |
| 1104 | + "schema": { |
| 1105 | + "type": "integer", |
| 1106 | + "example": "13" |
| 1107 | + } |
| 1108 | + } |
| 1109 | + ], |
947 | 1110 | "responses": {
|
948 | 1111 | "201": {
|
949 | 1112 | "description": "The like deleted successfully."
|
|
959 | 1122 | "Comments"
|
960 | 1123 | ],
|
961 | 1124 | "parameters": [
|
| 1125 | + { |
| 1126 | + "name": "postId", |
| 1127 | + "in": "path", |
| 1128 | + "description": "The ID of post (uint64)", |
| 1129 | + "required": true, |
| 1130 | + "schema": { |
| 1131 | + "type": "integer", |
| 1132 | + "example": "13" |
| 1133 | + } |
| 1134 | + }, |
962 | 1135 | {
|
963 | 1136 | "name": "count",
|
964 | 1137 | "in": "query",
|
|
977 | 1150 | "required": false,
|
978 | 1151 | "schema": {
|
979 | 1152 | "type": "integer",
|
980 |
| - "example": 13 |
| 1153 | + "example": 13, |
| 1154 | + "default": null |
981 | 1155 | }
|
982 | 1156 | }
|
983 | 1157 | ],
|
|
1029 | 1203 | "required": false,
|
1030 | 1204 | "schema": {
|
1031 | 1205 | "type": "integer",
|
1032 |
| - "example": 13 |
| 1206 | + "example": 13, |
| 1207 | + "default": null |
1033 | 1208 | }
|
1034 | 1209 | }
|
1035 | 1210 | ],
|
|
1084 | 1259 | "tags": [
|
1085 | 1260 | "Comments"
|
1086 | 1261 | ],
|
| 1262 | + "parameters": [ |
| 1263 | + { |
| 1264 | + "name": "commentId", |
| 1265 | + "in": "path", |
| 1266 | + "description": "The ID of comment (uint64)", |
| 1267 | + "required": true, |
| 1268 | + "schema": { |
| 1269 | + "type": "integer", |
| 1270 | + "example": "13" |
| 1271 | + } |
| 1272 | + } |
| 1273 | + ], |
1087 | 1274 | "responses": {
|
1088 | 1275 | "204": {
|
1089 | 1276 | "description": "The comment deleted successfully."
|
|
1128 | 1315 | "required": false,
|
1129 | 1316 | "schema": {
|
1130 | 1317 | "type": "integer",
|
1131 |
| - "example": 13 |
| 1318 | + "example": 13, |
| 1319 | + "default": null |
1132 | 1320 | }
|
1133 | 1321 | }
|
1134 | 1322 | ],
|
|
1169 | 1357 | "required": true,
|
1170 | 1358 | "schema": {
|
1171 | 1359 | "type": "string",
|
1172 |
| - "example": "Milad Rahimi", |
1173 |
| - "description": "The search query" |
| 1360 | + "example": "Milad Rahimi" |
1174 | 1361 | }
|
1175 | 1362 | },
|
1176 | 1363 | {
|
|
1191 | 1378 | "required": false,
|
1192 | 1379 | "schema": {
|
1193 | 1380 | "type": "integer",
|
1194 |
| - "example": 13 |
| 1381 | + "example": 13, |
| 1382 | + "default": null |
1195 | 1383 | }
|
1196 | 1384 | }
|
1197 | 1385 | ],
|
|
1243 | 1431 | "required": false,
|
1244 | 1432 | "schema": {
|
1245 | 1433 | "type": "integer",
|
1246 |
| - "example": 13 |
| 1434 | + "example": 13, |
| 1435 | + "default": null |
1247 | 1436 | }
|
1248 | 1437 | }
|
1249 | 1438 | ],
|
|
0 commit comments