From 510c8092c405a43e5fa9a9cf589ee80a08b03b06 Mon Sep 17 00:00:00 2001 From: Umputun Date: Mon, 5 Feb 2018 12:02:17 -0600 Subject: [PATCH] add BlockedUser struct to docs --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 25c673e1..645ea875 100644 --- a/README.md +++ b/README.md @@ -211,7 +211,13 @@ Sort can be `time` or `score`. Supported sort order with prefix -/+, i.e. `-time - `DELETE /api/v1/admin/comment/{id}?site=site-id&url=post-url` - delete comment by `id`. - `PUT /api/v1/admin/user/{userid}?site=site-id&block=1` - block or unblock user. -- `GET api/v1/admin/blocked` - list of blocked user ids. +- `GET api/v1/admin/blocked&site=site-id` - list of blocked user ids. + ```go + type BlockedUser struct { + ID string `json:"id"` + Timestamp time.Time `json:"time"` + } + ``` - `GET /api/v1/admin/export?site=side-id&mode=[stream|file]` - export all comments to json stream or gz file. - `POST /api/v1/admin/import?site=side-id` - import comments from the backup. - `PUT /api/v1/admin/pin/{id}?site=site-id&url=post-url&pin=1` - pin or unpin comment.