aboutsummaryrefslogtreecommitdiff
path: root/docs/API
diff options
context:
space:
mode:
authorfeld <feld@feld.me>2020-09-17 16:54:53 +0000
committerfeld <feld@feld.me>2020-09-17 16:54:53 +0000
commit608824b97e05fbfe7e1b201b742717194737debd (patch)
treed58c7f4f600d59405c0fb38bcdd8ad25f5e4e05d /docs/API
parent6b9bfc9e867ea49536d6fc38d674cdc2278778b8 (diff)
parentc711a2b15761db9d2d30035e9fee0783f0bf77b0 (diff)
downloadpleroma-608824b97e05fbfe7e1b201b742717194737debd.tar.gz
Merge branch 'instance-docs' into 'develop'
AdminAPI: Allow to modify Terms of Service and Instance Panel via Admin API Closes #1516 See merge request pleroma/pleroma!2931
Diffstat (limited to 'docs/API')
-rw-r--r--docs/API/admin_api.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/docs/API/admin_api.md b/docs/API/admin_api.md
index bc96abbf0..7992db58f 100644
--- a/docs/API/admin_api.md
+++ b/docs/API/admin_api.md
@@ -1455,3 +1455,45 @@ Loads json generated from `config/descriptions.exs`.
"unread": false
}
```
+
+## `GET /api/pleroma/admin/instance_document/:document_name`
+
+### Get an instance document
+
+- Authentication: required
+
+- Response:
+
+Returns the content of the document
+
+```html
+<h1>Instance panel</h1>
+```
+
+## `PATCH /api/pleroma/admin/instance_document/:document_name`
+- Params:
+ - `file` (the file to be uploaded, using multipart form data.)
+
+### Update an instance document
+
+- Authentication: required
+
+- Response:
+
+``` json
+{
+ "url": "https://example.com/instance/panel.html"
+}
+```
+
+## `DELETE /api/pleroma/admin/instance_document/:document_name`
+
+### Delete an instance document
+
+- Response:
+
+``` json
+{
+ "url": "https://example.com/instance/panel.html"
+}
+```