Followship API

追蹤指定使用者

POST hostname/api/followships

Request Body

NameTypeDescription

id*

integer

追蹤對象的ID

{
    "status": "success",                        
    "data": {
        "id": integer,
        "followingId": integer,
        "followerId": integer,
        "createdAt": timestamp
    },
    "message": "成功追蹤對方"
}

取消追蹤指定使用者

DELETE hostname/api/followships/:id

Path Parameters

NameTypeDescription

id*

string

想要取消追蹤對象的ID

{
    "status": "success",                        
    "data": {
        "id": integer,
        "followingId": integer,
        "followerId": integer,
        "createdAt": timestamp
    },
    "message": "成功取消追蹤對方"
}

Last updated