summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLibravatar Leonid Shevtsov <leonid@shevtsov.me>2025-03-30 11:21:08 +0300
committerLibravatar GitHub <noreply@github.com>2025-03-30 10:21:08 +0200
commit85fb63f46f7155f02ed2630f2301c0a1e59c6c59 (patch)
treee9f482d50b50c64f61357338c3424b29ef2127d9 /docs
parentbump ffmpreg to v0.6.7 (#3947) (diff)
downloadgotosocial-85fb63f46f7155f02ed2630f2301c0a1e59c6c59.tar.xz
[docs] Fix Swagger URL for the "edit status" operation (#3932)
Diffstat (limited to 'docs')
-rw-r--r--docs/api/swagger.yaml145
1 files changed, 75 insertions, 70 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index 1a96b0f65..e1c1c14e9 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -10732,6 +10732,76 @@ paths:
summary: Create a new status using the given form field parameters.
tags:
- statuses
+ /api/v1/statuses/{id}:
+ delete:
+ description: |-
+ The deleted status will be returned in the response. The `text` field will contain the original text of the status as it was submitted.
+ This is useful when doing a 'delete and redraft' type operation.
+ operationId: statusDelete
+ parameters:
+ - description: Target status ID.
+ in: path
+ name: id
+ required: true
+ type: string
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: The status that was just deleted.
+ schema:
+ $ref: '#/definitions/status'
+ "400":
+ description: bad request
+ "401":
+ description: unauthorized
+ "403":
+ description: forbidden
+ "404":
+ description: not found
+ "406":
+ description: not acceptable
+ "500":
+ description: internal server error
+ security:
+ - OAuth2 Bearer:
+ - write:statuses
+ summary: Delete status with the given ID. The status must belong to you.
+ tags:
+ - statuses
+ get:
+ operationId: statusGet
+ parameters:
+ - description: Target status ID.
+ in: path
+ name: id
+ required: true
+ type: string
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: The requested status.
+ schema:
+ $ref: '#/definitions/status'
+ "400":
+ description: bad request
+ "401":
+ description: unauthorized
+ "403":
+ description: forbidden
+ "404":
+ description: not found
+ "406":
+ description: not acceptable
+ "500":
+ description: internal server error
+ security:
+ - OAuth2 Bearer:
+ - read:statuses
+ summary: View status with the given ID.
+ tags:
+ - statuses
put:
consumes:
- application/json
@@ -10739,6 +10809,11 @@ paths:
description: The parameters can also be given in the body of the request, as JSON, if the content-type is set to 'application/json'.
operationId: statusEdit
parameters:
+ - description: Target status ID.
+ in: path
+ name: id
+ required: true
+ type: string
- description: |-
Text content of the status.
If media_ids is provided, this becomes optional.
@@ -10838,76 +10913,6 @@ paths:
summary: Edit an existing status using the given form field parameters.
tags:
- statuses
- /api/v1/statuses/{id}:
- delete:
- description: |-
- The deleted status will be returned in the response. The `text` field will contain the original text of the status as it was submitted.
- This is useful when doing a 'delete and redraft' type operation.
- operationId: statusDelete
- parameters:
- - description: Target status ID.
- in: path
- name: id
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: The status that was just deleted.
- schema:
- $ref: '#/definitions/status'
- "400":
- description: bad request
- "401":
- description: unauthorized
- "403":
- description: forbidden
- "404":
- description: not found
- "406":
- description: not acceptable
- "500":
- description: internal server error
- security:
- - OAuth2 Bearer:
- - write:statuses
- summary: Delete status with the given ID. The status must belong to you.
- tags:
- - statuses
- get:
- operationId: statusGet
- parameters:
- - description: Target status ID.
- in: path
- name: id
- required: true
- type: string
- produces:
- - application/json
- responses:
- "200":
- description: The requested status.
- schema:
- $ref: '#/definitions/status'
- "400":
- description: bad request
- "401":
- description: unauthorized
- "403":
- description: forbidden
- "404":
- description: not found
- "406":
- description: not acceptable
- "500":
- description: internal server error
- security:
- - OAuth2 Bearer:
- - read:statuses
- summary: View status with the given ID.
- tags:
- - statuses
/api/v1/statuses/{id}/bookmark:
post:
operationId: statusBookmark