|
13 | 13 | "paths": {
|
14 | 14 | "/auth/otp/email/generate": {
|
15 | 15 | "post": {
|
16 |
| - "summary": "Generate OTP in order to sign up or sign in.", |
| 16 | + "summary": "Generate and send OTP", |
| 17 | + "description": "Generate and send OTP using email in order to sign up or sign in.", |
17 | 18 | "tags": [
|
18 | 19 | "Auth"
|
19 | 20 | ],
|
|
59 | 60 | },
|
60 | 61 | "/auth/otp/email/submit": {
|
61 | 62 | "post": {
|
62 |
| - "summary": "Submit OTP received by email to complete sign in or sign up process.", |
| 63 | + "summary": "Submit OTP", |
| 64 | + "description": "Submit OTP received by email to complete sign in or sign up process.", |
63 | 65 | "tags": [
|
64 | 66 | "Auth"
|
65 | 67 | ],
|
|
114 | 116 | },
|
115 | 117 | "/auth/sign-in/email": {
|
116 | 118 | "post": {
|
117 |
| - "summary": "Sign in by email and password.", |
| 119 | + "summary": "Sign in by email", |
| 120 | + "description": "Sign in by email and password.", |
118 | 121 | "tags": [
|
119 | 122 | "Auth"
|
120 | 123 | ],
|
|
167 | 170 | },
|
168 | 171 | "/auth/sign-in/username": {
|
169 | 172 | "post": {
|
170 |
| - "summary": "Sign in by username and password.", |
| 173 | + "summary": "Sign in by username", |
| 174 | + "description": "Sign in by username and password.", |
171 | 175 | "tags": [
|
172 | 176 | "Auth"
|
173 | 177 | ],
|
|
220 | 224 | },
|
221 | 225 | "/auth/sign-in/google": {
|
222 | 226 | "post": {
|
223 |
| - "summary": "Sign in or sign up using Google SSO.", |
| 227 | + "summary": "Sign in/up using Google", |
| 228 | + "description": "Sign in or sign up using Google SSO (Single Sign On).", |
224 | 229 | "tags": [
|
225 | 230 | "Auth"
|
226 | 231 | ],
|
|
269 | 274 | },
|
270 | 275 | "/profile": {
|
271 | 276 | "get": {
|
272 |
| - "summary": "Get my profile.", |
| 277 | + "summary": "Get profile", |
| 278 | + "description": "Get my profile details.", |
273 | 279 | "tags": [
|
274 | 280 | "Profile"
|
275 | 281 | ],
|
|
300 | 306 | }
|
301 | 307 | },
|
302 | 308 | "delete": {
|
303 |
| - "summary": "Submit delete account request.", |
| 309 | + "summary": "Delete account", |
| 310 | + "description": "Submit delete account request for my account.", |
304 | 311 | "tags": [
|
305 | 312 | "Profile"
|
306 | 313 | ],
|
|
313 | 320 | },
|
314 | 321 | "/profile/name": {
|
315 | 322 | "patch": {
|
316 |
| - "summary": "Update my name.", |
| 323 | + "summary": "Update name", |
| 324 | + "description": "Update my name.", |
317 | 325 | "tags": [
|
318 | 326 | "Profile"
|
319 | 327 | ],
|
|
358 | 366 | },
|
359 | 367 | "/profile/bio": {
|
360 | 368 | "patch": {
|
361 |
| - "summary": "Update my bio.", |
| 369 | + "summary": "Update bio", |
| 370 | + "description": "Update my bio (biography).", |
362 | 371 | "tags": [
|
363 | 372 | "Profile"
|
364 | 373 | ],
|
|
403 | 412 | },
|
404 | 413 | "/profile/username": {
|
405 | 414 | "patch": {
|
406 |
| - "summary": "Update my username.", |
| 415 | + "summary": "Update username", |
| 416 | + "description": "Update my username.", |
407 | 417 | "tags": [
|
408 | 418 | "Profile"
|
409 | 419 | ],
|
|
420 | 430 | "username": {
|
421 | 431 | "type": "string",
|
422 | 432 | "example": "jack",
|
423 |
| - "description": "The new username" |
| 433 | + "description": "The new username (format: ^[a-z0-9_]+$)", |
| 434 | + "format": "^[a-z0-9_]+$" |
424 | 435 | }
|
425 | 436 | }
|
426 | 437 | }
|
|
448 | 459 | },
|
449 | 460 | "/profile/image": {
|
450 | 461 | "patch": {
|
451 |
| - "summary": "Update my image (photo).", |
| 462 | + "summary": "Update image", |
| 463 | + "description": "Update (upload) my image (photo).", |
452 | 464 | "tags": [
|
453 | 465 | "Profile"
|
454 | 466 | ],
|
|
494 | 506 | },
|
495 | 507 | "/files": {
|
496 | 508 | "post": {
|
497 |
| - "summary": "Upload a new file.", |
| 509 | + "summary": "Upload file", |
| 510 | + "description": "Upload a new file.", |
498 | 511 | "tags": [
|
499 | 512 | "Files"
|
500 | 513 | ],
|
|
543 | 556 | },
|
544 | 557 | "/users/{userId}": {
|
545 | 558 | "get": {
|
546 |
| - "summary": "Get the user details.", |
| 559 | + "summary": "Get user", |
| 560 | + "description": "Get the user.", |
547 | 561 | "tags": [
|
548 | 562 | "Users"
|
549 | 563 | ],
|
|
584 | 598 | },
|
585 | 599 | "/users/{userId}/followings": {
|
586 | 600 | "get": {
|
587 |
| - "summary": "Index followings of the user.", |
| 601 | + "summary": "Index user followings", |
| 602 | + "description": "Index the followings of the user.", |
588 | 603 | "parameters": [
|
589 | 604 | {
|
590 | 605 | "name": "count",
|
|
635 | 650 | },
|
636 | 651 | "/users/{userId}/followers": {
|
637 | 652 | "get": {
|
638 |
| - "summary": "Index followers of the user.", |
| 653 | + "summary": "Index user followers", |
| 654 | + "description": "Index the followers of the user.", |
639 | 655 | "tags": [
|
640 | 656 | "Users"
|
641 | 657 | ],
|
|
684 | 700 | }
|
685 | 701 | },
|
686 | 702 | "post": {
|
687 |
| - "summary": "Follow the user.", |
| 703 | + "summary": "Follow user", |
| 704 | + "description": "Follow the user (submit myself as the user follower).", |
688 | 705 | "tags": [
|
689 | 706 | "Users"
|
690 | 707 | ],
|
|
695 | 712 | }
|
696 | 713 | },
|
697 | 714 | "delete": {
|
698 |
| - "summary": "Unfollow the user.", |
| 715 | + "summary": "Unfollow user", |
| 716 | + "description": "Unfollow the user (delete myself from the user followers).", |
699 | 717 | "tags": [
|
700 | 718 | "Users"
|
701 | 719 | ],
|
|
708 | 726 | },
|
709 | 727 | "/users/{userId}/posts": {
|
710 | 728 | "get": {
|
711 |
| - "summary": "Index the user posts.", |
| 729 | + "summary": "Index user posts", |
| 730 | + "description": "Index the posts of the user.", |
712 | 731 | "tags": [
|
713 | 732 | "Posts"
|
714 | 733 | ],
|
|
736 | 755 | },
|
737 | 756 | "/posts": {
|
738 | 757 | "post": {
|
739 |
| - "summary": "Create a new post.", |
| 758 | + "summary": "Create post", |
| 759 | + "description": "Create a new post.", |
740 | 760 | "tags": [
|
741 | 761 | "Posts"
|
742 | 762 | ],
|
|
771 | 791 | },
|
772 | 792 | "/posts/{postId}": {
|
773 | 793 | "get": {
|
774 |
| - "summary": "Get the post.", |
| 794 | + "summary": "Get post", |
| 795 | + "description": "Get the post.", |
775 | 796 | "tags": [
|
776 | 797 | "Posts"
|
777 | 798 | ],
|
|
794 | 815 | }
|
795 | 816 | },
|
796 | 817 | "put": {
|
797 |
| - "summary": "Update the post.", |
| 818 | + "summary": "Update post", |
| 819 | + "description": "Update the post.", |
798 | 820 | "tags": [
|
799 | 821 | "Posts"
|
800 | 822 | ],
|
|
839 | 861 | }
|
840 | 862 | },
|
841 | 863 | "delete": {
|
842 |
| - "summary": "Delete the post.", |
| 864 | + "summary": "Delete post", |
| 865 | + "description": "Delete the post.", |
843 | 866 | "tags": [
|
844 | 867 | "Posts"
|
845 | 868 | ],
|
|
852 | 875 | },
|
853 | 876 | "/posts/{postId}/likes": {
|
854 | 877 | "get": {
|
855 |
| - "summary": "Index the post likes.", |
| 878 | + "summary": "Index post likes", |
| 879 | + "description": "Index the likes of the post.", |
856 | 880 | "tags": [
|
857 | 881 | "Likes"
|
858 | 882 | ],
|
|
901 | 925 | }
|
902 | 926 | },
|
903 | 927 | "post": {
|
904 |
| - "summary": "Like the post.", |
| 928 | + "summary": "Like post", |
| 929 | + "description": "Like the post (create like for the post).", |
905 | 930 | "tags": [
|
906 | 931 | "Likes"
|
907 | 932 | ],
|
|
914 | 939 | },
|
915 | 940 | "/likes/{likeId}": {
|
916 | 941 | "delete": {
|
917 |
| - "summary": "Delete the like (unlike related post).", |
| 942 | + "summary": "Unlike", |
| 943 | + "description": "Delete the like (unlike related post).", |
918 | 944 | "tags": [
|
919 | 945 | "Likes"
|
920 | 946 | ],
|
|
927 | 953 | },
|
928 | 954 | "/posts/{postId}/comments": {
|
929 | 955 | "get": {
|
930 |
| - "summary": "Index the post comments.", |
| 956 | + "summary": "Index post comments", |
| 957 | + "description": "Index the comments of the post.", |
931 | 958 | "tags": [
|
932 | 959 | "Comments"
|
933 | 960 | ],
|
|
978 | 1005 | },
|
979 | 1006 | "/comments": {
|
980 | 1007 | "get": {
|
981 |
| - "summary": "Index my comments.", |
| 1008 | + "summary": "Index my comments", |
| 1009 | + "description": "Index all of my comments.", |
982 | 1010 | "tags": [
|
983 | 1011 | "Comments"
|
984 | 1012 | ],
|
|
1027 | 1055 | }
|
1028 | 1056 | },
|
1029 | 1057 | "post": {
|
1030 |
| - "summary": "Create a new comment.", |
| 1058 | + "summary": "Create comment", |
| 1059 | + "description": "Create a new comment.", |
1031 | 1060 | "tags": [
|
1032 | 1061 | "Comments"
|
1033 | 1062 | ],
|
|
1050 | 1079 | },
|
1051 | 1080 | "/comments/{commentId}": {
|
1052 | 1081 | "delete": {
|
1053 |
| - "summary": "Delete the comment (my comment or my post's comment).", |
| 1082 | + "summary": "Delete comment", |
| 1083 | + "description": "Delete the comment (either my comment or a comment on one of my posts).", |
1054 | 1084 | "tags": [
|
1055 | 1085 | "Comments"
|
1056 | 1086 | ],
|
|
1063 | 1093 | },
|
1064 | 1094 | "/search/posts": {
|
1065 | 1095 | "get": {
|
1066 |
| - "summary": "Search in posts.", |
| 1096 | + "summary": "Search posts", |
| 1097 | + "description": "Search in all posts.", |
1067 | 1098 | "tags": [
|
1068 | 1099 | "Search"
|
1069 | 1100 | ],
|
|
1125 | 1156 | },
|
1126 | 1157 | "/search/users": {
|
1127 | 1158 | "get": {
|
1128 |
| - "summary": "Search in users.", |
| 1159 | + "summary": "Search users", |
| 1160 | + "description": "Search in all users.", |
1129 | 1161 | "tags": [
|
1130 | 1162 | "Search"
|
1131 | 1163 | ],
|
|
1187 | 1219 | },
|
1188 | 1220 | "/feed": {
|
1189 | 1221 | "get": {
|
1190 |
| - "summary": "Index my feed posts.", |
| 1222 | + "summary": "Index feed posts", |
| 1223 | + "description": "Index my feed posts.", |
1191 | 1224 | "tags": [
|
1192 | 1225 | "Feed"
|
1193 | 1226 | ],
|
|
0 commit comments