summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-07-12 20:36:03 +0200
committerLibravatar GitHub <noreply@github.com>2024-07-12 20:36:03 +0200
commitaeb65bceae97611b8931de2e954df18afedd812f (patch)
tree74e6f7ecb86c8affcfef99994cbf21d9133a2b56 /docs/api
parent[feature] support processing of (many) more media types (#3090) (diff)
downloadgotosocial-aeb65bceae97611b8931de2e954df18afedd812f.tar.xz
[feature/frontend] Better visual separation between "main" thread and "replies" (#3093)
* [feature/frontend] Better web threading model * fix test * bwap * tweaks * more tweaks to wording * typo * indenting * adjust wording * aaa
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/swagger.yaml44
1 files changed, 23 insertions, 21 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index f7ce844af..b91b4f4b0 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -2516,24 +2516,6 @@ definitions:
type: object
x-go-name: Status
x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
- statusContext:
- properties:
- ancestors:
- description: Parents in the thread.
- items:
- $ref: '#/definitions/status'
- type: array
- x-go-name: Ancestors
- descendants:
- description: Children in the thread.
- items:
- $ref: '#/definitions/status'
- type: array
- x-go-name: Descendants
- title: Context models the tree around a given status.
- type: object
- x-go-name: Context
- x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
statusEdit:
description: |-
StatusEdit represents one historical revision of a status, containing
@@ -2887,6 +2869,26 @@ definitions:
type: object
x-go-name: Theme
x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
+ threadContext:
+ description: |-
+ ThreadContext models the tree or
+ "thread" around a given status.
+ properties:
+ ancestors:
+ description: Parents in the thread.
+ items:
+ $ref: '#/definitions/status'
+ type: array
+ x-go-name: Ancestors
+ descendants:
+ description: Children in the thread.
+ items:
+ $ref: '#/definitions/status'
+ type: array
+ x-go-name: Descendants
+ type: object
+ x-go-name: ThreadContext
+ x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
user:
properties:
admin:
@@ -8149,7 +8151,7 @@ paths:
/api/v1/statuses/{id}/context:
get:
description: The returned statuses will be ordered in a thread structure, so they are suitable to be displayed in the order in which they were returned.
- operationId: statusContext
+ operationId: threadContext
parameters:
- description: Target status ID.
in: path
@@ -8160,9 +8162,9 @@ paths:
- application/json
responses:
"200":
- description: Status context object.
+ description: Thread context object.
schema:
- $ref: '#/definitions/statusContext'
+ $ref: '#/definitions/threadContext'
"400":
description: bad request
"401":