Skip to content

Latest commit

 

History

History
45 lines (39 loc) · 1.26 KB

get_comment_by_parent_hash.md

File metadata and controls

45 lines (39 loc) · 1.26 KB

GET /posts/:refhash/comments

Returns replies of a given refhash.

Resource URL

https://api.nmd.co/posts/:refhash/comments

Path Parameters

Name Required Description
refhash Yes Specify refhash of the post to be fetched

Query Parameters

Name Required Description Default
order No Specify orders of posts. (DESC or ASC) DESC
limit No Specify the number of posts to fetch. (Maximum=1000)
offset No Specify the posts offset to begin the fetch. 0

Sample Response

{
    "payload": {
        "id": 1,
        "tld": "kyokan",
        "subdomain": "",
        "networkId": "",
        "refhash": "d12343a489083aaf33f7b8b2f53243dce802a75eea71eebaa0e27823da83d3b36b796f6b616e",
        "createdAt": "2020-11-09T05:29:17.000Z",
        "message": {
            "id": 1,
            "body": "\"We're on the verge of a shift in how information is exchanged, a decentralization revolution. I don't think anyone can stop this now.\"\n",
            "title": null,
            "reference": null,
            "topic": null,
            "tags": [],
            "replyCount": 0,
            "likeCount": 0,
            "pinCount": 0
        },
        "additionalData": null
    }
}