diff options
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/swagger.yaml | 44 |
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": |