Skip to content

Commit e029fb8

Browse files
committed
update follower/following apis
1 parent 66ae43b commit e029fb8

File tree

1 file changed

+30
-24
lines changed

1 file changed

+30
-24
lines changed

web/swagger.json

+30-24
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,14 @@
594594
"followings_count": {
595595
"type": "integer",
596596
"example": 666
597+
},
598+
"followed_by_me": {
599+
"type": "boolean",
600+
"description": "True if user is followed by me"
601+
},
602+
"follows_me": {
603+
"type": "boolean",
604+
"description": "True if user follows me"
597605
}
598606
}
599607
}
@@ -629,6 +637,28 @@
629637
}
630638
}
631639
}
640+
},
641+
"post": {
642+
"description": "Store myself as a new follower for the user",
643+
"tags": [
644+
"Users"
645+
],
646+
"responses": {
647+
"201": {
648+
"description": "The new relation created."
649+
}
650+
}
651+
},
652+
"delete": {
653+
"description": "Delete myself as a follower from the list of followers",
654+
"tags": [
655+
"Users"
656+
],
657+
"responses": {
658+
"201": {
659+
"description": "The relation deleted."
660+
}
661+
}
632662
}
633663
},
634664
"/users/{userId}/followings": {
@@ -659,30 +689,6 @@
659689
}
660690
}
661691
},
662-
"/users/{userId}/followings/{followeeId}": {
663-
"post": {
664-
"description": "Store a new following for the user",
665-
"tags": [
666-
"Users"
667-
],
668-
"responses": {
669-
"201": {
670-
"description": "The new post created."
671-
}
672-
}
673-
},
674-
"delete": {
675-
"description": "Delete the followee from the list of followings",
676-
"tags": [
677-
"Users"
678-
],
679-
"responses": {
680-
"201": {
681-
"description": "The following deleted."
682-
}
683-
}
684-
}
685-
},
686692
"/users/{userId}/posts": {
687693
"get": {
688694
"description": "Index the user posts",

0 commit comments

Comments
 (0)