Followship API
追蹤指定使用者
POST
hostname/api/followships
Request Body
Name
Type
Description
id*
integer
追蹤對象的ID
{
"status": "success",
"data": {
"id": integer,
"followingId": integer,
"followerId": integer,
"createdAt": timestamp
},
"message": "成功追蹤對方"
}
取消追蹤指定使用者
DELETE
hostname/api/followships/:id
Path Parameters
Name
Type
Description
id*
string
想要取消追蹤對象的ID
{
"status": "success",
"data": {
"id": integer,
"followingId": integer,
"followerId": integer,
"createdAt": timestamp
},
"message": "成功取消追蹤對方"
}
Last updated