add block/unblock rest and store

This commit is contained in:
Eugene
2017-12-22 20:48:18 -06:00
parent ef7c8fcba2
commit b526de7f51
6 changed files with 100 additions and 6 deletions
+2 -1
View File
@@ -61,4 +61,5 @@ type Locator struct {
- `GET /api/v1/id/{id}` - get comment by `id`
- `GET /api/v1/count?url=post-url` - get comment's count for `{url}`
- `PUT /api/v1/vote/{id}?url=post-url&vote=1` - vote for comment. `vote`=1 will increase score, -1 decreases. _auth required_
- `DELETE /api/v1/comment/{id}?url=post-url` - delete comment by `id`. _auth and admin required_
- `DELETE /api/v1/comment/{id}?url=post-url` - delete comment by `id`. _auth and admin required_
- `PUT /user/{userid}?site=side-id&block=1` - block or unblock user. _auth and admin required_