summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2024-08-28 17:37:42 +0200
committermarcin mikołajczak <git@mkljczk.pl>2024-08-28 18:28:22 +0200
commit3419e2cbdd3bf1c21e3bbf44ea5313ecfd03c989 (patch)
tree92bd1e4a78b42e3fae64fa26a19874a3632ab605 /docs
parent58f646bcda97d6a9f21aa41b55f77dd4e2a9c695 (diff)
downloadpleroma-3419e2cbdd3bf1c21e3bbf44ea5313ecfd03c989.tar.gz
pleroma-3419e2cbdd3bf1c21e3bbf44ea5313ecfd03c989.zip
Correct response in AdminAPI docs
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'docs')
-rw-r--r--docs/development/API/admin_api.md31
1 files changed, 17 insertions, 14 deletions
diff --git a/docs/development/API/admin_api.md b/docs/development/API/admin_api.md
index 5b373b8e1..409e78a1e 100644
--- a/docs/development/API/admin_api.md
+++ b/docs/development/API/admin_api.md
@@ -433,7 +433,7 @@ Response:
* On success: URL of the unfollowed relay
```json
-{"https://example.com/relay"}
+"https://example.com/relay"
```
## `POST /api/v1/pleroma/admin/users/invite_token`
@@ -1193,20 +1193,23 @@ Loads json generated from `config/descriptions.exs`.
- Response:
```json
-[
- {
- "id": 1234,
- "data": {
- "actor": {
- "id": 1,
- "nickname": "lain"
+{
+ "items": [
+ {
+ "id": 1234,
+ "data": {
+ "actor": {
+ "id": 1,
+ "nickname": "lain"
+ },
+ "action": "relay_follow"
},
- "action": "relay_follow"
- },
- "time": 1502812026, // timestamp
- "message": "[2017-08-15 15:47:06] @nick0 followed relay: https://example.org/relay" // log message
- }
-]
+ "time": 1502812026, // timestamp
+ "message": "[2017-08-15 15:47:06] @nick0 followed relay: https://example.org/relay" // log message
+ }
+ ],
+ "total": 1
+}
```
## `POST /api/v1/pleroma/admin/reload_emoji`