summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-11-08 18:11:06 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-08 17:11:06 +0000
commitb4f7316a4cdf5ee2b43118aa6133a84a7ae4a5df (patch)
tree1ffa65108351843bbb92c8a245c5345cff88c61a /docs/api
parent[frontend] Custom Emoji Deletion (#994) (diff)
downloadgotosocial-b4f7316a4cdf5ee2b43118aa6133a84a7ae4a5df.tar.xz
[feature] Make instance thumbnail configurable via admin panel (#973)
* [feature] Make instance thumbnail configurable via admin panel * log db errors in InstanceToAPIInstance * only update instance in db if necessary * start adding tests * finish test
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/swagger.yaml20
1 files changed, 17 insertions, 3 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index 363948593..9eb10269b 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -969,6 +969,16 @@ definitions:
example: https://example.org/files/instance/thumbnail.jpeg
type: string
x-go-name: Thumbnail
+ thumbnail_description:
+ description: Description of the instance thumbnail.
+ example: picture of a cute lil' friendly sloth
+ type: string
+ x-go-name: ThumbnailDescription
+ thumbnail_type:
+ description: MIME type of the instance thumbnail.
+ example: image/png
+ type: string
+ x-go-name: ThumbnailType
title:
description: The title of the instance.
example: GoToSocial Example Instance
@@ -3400,11 +3410,15 @@ paths:
maximum: 5000
name: terms
type: string
- - description: Avatar of the instance.
+ - description: Thumbnail image to use for the instance.
in: formData
- name: avatar
+ name: thumbnail
type: file
- - description: Header of the instance.
+ - description: Image description of the submitted instance thumbnail.
+ in: formData
+ name: thumbnail_description
+ type: string
+ - description: Header image to use for the instance.
in: formData
name: header
type: file