diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-09-17 22:22:59 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-09-17 22:22:59 +0300 |
commit | a42880040574701000470fc1c2dbd6f7242c1a06 (patch) | |
tree | 666d244b9bf4f38b4421deea8d3b8bbb10ec179e /docs/API/admin_api.md | |
parent | d9fb5bc08ad67b55d0cd25c1a0d7d3a740758427 (diff) | |
parent | 7bf269fe836ded974d2187c6b36eba4ab185ff25 (diff) | |
download | pleroma-a42880040574701000470fc1c2dbd6f7242c1a06.tar.gz |
Merge remote-tracking branch 'remotes/origin/develop' into media-preview-proxy-nostream
# Conflicts:
# CHANGELOG.md
Diffstat (limited to 'docs/API/admin_api.md')
-rw-r--r-- | docs/API/admin_api.md | 42 |
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" +} +``` |