Return the file content for GET /api/pleroma/admin/instance_document/:document_name

This commit is contained in:
eugenijm 2020-09-17 16:54:38 +03:00
commit c711a2b157
5 changed files with 26 additions and 21 deletions

View file

@ -1458,23 +1458,23 @@ Loads json generated from `config/descriptions.exs`.
## `GET /api/pleroma/admin/instance_document/:document_name`
### Gets an instance document
### Get an instance document
- Authentication: required
- Response:
``` json
{
"url": "https://example.com/instance/panel.html"
}
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.)
### Updates an instance document
### Update an instance document
- Authentication: required