-
Notifications
You must be signed in to change notification settings - Fork 0
Reply API
A reply is a statement issued by the root user in response to a comment. Only the root user is allowed to reply a comment, and only one reply is allowed for each comment, but you can modify and remove it.
-
POST
index.php?controller=reply&action=create
Create a new Reply.
-
POST
index.php?controller=reply&action=update
Modify an existing Reply.
-
GET
index.php?controller=reply&action=show&mid={mid}
Receive a single Reply.
-
POST
index.php?controller=reply&action=delete
Remove a Reply.
-
POST
index.php?controller=reply&action=deleteAll
Remove all Replies.
-
POST
index.php?controller=reply&action=create
Create a new Reply.
Request:
Request Header Type Description RequestVerificationToken string Required Query String Parameter Type Description mid integer Required. The Comment ID
content string Required. The reply body
Response: (TODO)
{ "statusCode": 200, "statusText": "OK", "response": [] }
-
POST
index.php?controller=reply&action=update
Update an existing Reply.
Request:
Request Header Type Description RequestVerificationToken string Required Query String Parameter Type Description mid integer Required. The Comment ID of the reply
content string Required. The reply body
Response: (TODO)
{ "statusCode": 200, "statusText": "OK", "response": [] }
-
GET
index.php?controller=reply&action=show&mid={mid}
Receive a single Reply.
Request:
Query String Parameter Type Description mid integer Required. The Comment ID of the reply
Response:
{ "statusCode": 200, "statusText": "OK", "response": { "rid": "1", "pid": "11", "content": "reply 2.~~~~~~", "r_time": "1450496033" } }
-
POST
index.php?controller=reply&action=delete
Remove a Reply.
Request:
Request Header Type Description RequestVerificationToken string Required Query String Parameter Type Description mid integer Required. The Comment ID of the reply
Response: (TODO)
{ "statusCode": 200, "statusText": "OK", "response": [] }
-
POST
index.php?controller=reply&action=deleteAll
Remove all Replies.
Request:
Request Header Type Description RequestVerificationToken string Required Response:
{ "statusCode": 200, "statusText": "OK", "response": [] }