Skip to content
Kang Chen edited this page Dec 19, 2015 · 8 revisions

Reply

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.

What can you do with Reply?

  1. POST index.php?controller=reply&action=create

    Create a new Reply.

  2. POST index.php?controller=reply&action=update

    Modify an existing Reply.

  3. GET index.php?controller=reply&action=show&mid={mid}

    Receive a single Reply.

  4. POST index.php?controller=reply&action=delete

    Remove a Reply.

  5. POST index.php?controller=reply&action=deleteAll

    Remove all Replies.

Endpoints

  1. 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": []
    }
    
  2. 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": []
    }
    
  3. 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"
        }
    }
    
  4. 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": []
    }
    
  5. POST index.php?controller=reply&action=deleteAll

    Remove all Replies.

    Request:

    Request Header Type Description
    RequestVerificationToken string Required

    Response:

    {
        "statusCode": 200,
        "statusText": "OK",
        "response": []
    }
    
Clone this wiki locally