Files
remark42/remark.rest
T
2017-12-31 15:46:09 -06:00

45 lines
1.4 KiB
ReStructuredText

### find request with tree
GET https://demo.remark42.com/api/v1/find?site=remark&url=https://radio-t.com/p/2017/12/16/podcast-576/&sort=time&format=tree"
### find request with plain
GET https://demo.remark42.com/api/v1/find?site=remark&url=https://radio-t.com/p/2017/12/16/podcast-576/&sort=time&format=plain"
### last 10 comments
GET https://demo.remark42.com/api/v1/last/50?site=remark
### create commnet
POST https://demo.remark42.com/api/v1/comment
Content-Type: application/json
{
"text": "comment blah http://radio-t.com",
"user" : {
"name": "umputun",
"id": "@umputun",
"ip": "127.0.0.1"
},
"locator": {
"url": "https://radio-t.com/blah1",
"site": "remark"
}
}
### pin comment
PUT https://demo.remark42.com/api/v1/admin/pin/3665976683?site=remark&url=https://radio-t.com/p/2017/12/16/podcast-576/&pin=1
### vote for comment
PUT https://demo.remark42.com/api/v1/vote/3665976683?site=remark&url=https://radio-t.com/p/2017/12/16/podcast-576/&vote=1
### get user info
GET https://demo.remark42.com/api/v1/user
### get comment by id
GET https://demo.remark42.com/api/v1/id/3665976683?site=remark&url=https://radio-t.com/p/2017/12/16/podcast-576/
### get comment by user id
GET https://demo.remark42.com/api/v1/comments?site=remark&user=umputun
### get counts
GET https://demo.remark42.com/api/v1/count?site=remark&url=https://radio-t.com/p/2017/12/16/podcast-576/