fix readme wrong method for edit

This commit is contained in:
Umputun
2018-01-06 13:24:11 -06:00
parent 440974f365
commit 2eb5e39476
+2 -2
View File
@@ -157,7 +157,7 @@ type Node struct {
Sort can be `time` or `score`. Supported sort order with prefix -/+, i.e. `-time`. For `tree` mode sort will be applied to top-level comments only and all replies always sorted by time.
- `POST api/v1/comment/{id}?site=site-id&url=post-url` - edit comment, allowed once in 5min since creation
- `PUT api/v1/comment/{id}?site=site-id&url=post-url` - edit comment, allowed once in 5min since creation
```
Content-Type: application/json
@@ -168,7 +168,7 @@ Sort can be `time` or `score`. Supported sort order with prefix -/+, i.e. `-time
```
- `GET /api/v1/last/{max}?site=site-id` - get up to `{max}` last comments
- `GET /api/v1/id/{id}?site=site-id` - get comment by `commen id`
- `GET /api/v1/id/{id}?site=site-id` - get comment by `comment id`
- `GET /api/v1/comments?site=site-id&user=id` - get comment by `user id`
- `GET /api/v1/count?site=site-id&url=post-url` - get comment's count for `{url}`
- `GET /api/v1/list?site=site-id` - list commented posts