fix readme wrong method for edit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user