Reply API

對指定推文發表回覆

POST hostname/api/tweets/:tweet_id/replies

Path Parameters

Name
Type
Description

tweet_id*

string

推文ID

Request Body

Name
Type
Description

comment*

String

回覆內容

{
    "status": "success",                        
    "data": {
        "id": integer,
        "comment": string
        "UserId": integer,
        "TweetId": integer,
        "createdAt": timestamp,
        "updatedAt": timestamp
    },
    "message": "成功發表回覆"
}

瀏覽對應推文的回覆

GET hostname/api/tweets/:tweet_id/replies

Path Parameters

Name
Type
Description

id*

string

推文ID

Last updated