summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-11-15 10:19:32 +0100
committerLibravatar GitHub <noreply@github.com>2022-11-15 10:19:32 +0100
commita39a664525f55846dd5eea52fcc7009867835989 (patch)
tree33ba8c86bff8ea31853c1f52a92260d2909edcd4 /docs/api
parent[feature] Allow newly uploaded emojis to be placed in categories (#939) (diff)
downloadgotosocial-a39a664525f55846dd5eea52fcc7009867835989.tar.xz
[feature] Serialize local account role via API, and show it via web view (#1045)
* [feature] Add 'role' field to api serialization of local accounts * [chore] Add a bit of license text while I'm here * [frogend] render account role on same line as username in web view of profile * style tweaking on role badges, general profile header layout * profile stats wrapping * don't render standard 'user' role on web view Co-authored-by: f0x <f0x@cthu.lu>
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/swagger.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index 528ea03c7..4fd9b9ffb 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -252,6 +252,14 @@ definitions:
description: Bio/description of this account.
type: string
x-go-name: Note
+ role:
+ description: |-
+ Role of the account on this instance.
+ Omitted for remote accounts.
+ type: accountRole
+ example: user
+ type: string
+ x-go-name: Role
source:
$ref: '#/definitions/Source'
statuses_count: