summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2024-06-06 11:16:20 -0700
committerLibravatar GitHub <noreply@github.com>2024-06-06 20:16:20 +0200
commite605788b4bd624d68c6a499b943f186c9ac3ebe3 (patch)
treedf25b2f67f5620ef4cd4a18195629c1b8b1bc4ad /docs/api
parent[feature] User muting (#2960) (diff)
downloadgotosocial-e605788b4bd624d68c6a499b943f186c9ac3ebe3.tar.xz
[bugfix] Filter fixes (#2971)
* Add Filter.Expired convenience method, consistent with mutes * Add missing Swagger for filter keyword/status delete and for 403s on moved accounts
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/swagger.yaml72
1 files changed, 72 insertions, 0 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index 05f127d55..3946a37ce 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -6342,6 +6342,8 @@ paths:
description: bad request
"401":
description: unauthorized
+ "403":
+ description: forbidden to moved accounts
"404":
description: not found
"406":
@@ -6494,6 +6496,8 @@ paths:
description: bad request
"401":
description: unauthorized
+ "403":
+ description: forbidden to moved accounts
"404":
description: not found
"406":
@@ -9241,6 +9245,8 @@ paths:
description: bad request
"401":
description: unauthorized
+ "403":
+ description: forbidden to moved accounts
"404":
description: not found
"406":
@@ -9380,6 +9386,8 @@ paths:
description: bad request
"401":
description: unauthorized
+ "403":
+ description: forbidden to moved accounts
"404":
description: not found
"406":
@@ -9471,6 +9479,8 @@ paths:
description: bad request
"401":
description: unauthorized
+ "403":
+ description: forbidden to moved accounts
"404":
description: not found
"406":
@@ -9552,6 +9562,8 @@ paths:
description: bad request
"401":
description: unauthorized
+ "403":
+ description: forbidden to moved accounts
"404":
description: not found
"406":
@@ -9569,6 +9581,35 @@ paths:
tags:
- filters
/api/v2/filters/keywords/{id}:
+ delete:
+ operationId: filterKeywordDelete
+ parameters:
+ - description: ID of the filter keyword
+ in: path
+ name: id
+ required: true
+ type: string
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: filter keyword deleted
+ "400":
+ description: bad request
+ "401":
+ description: unauthorized
+ "404":
+ description: not found
+ "406":
+ description: not acceptable
+ "500":
+ description: internal server error
+ security:
+ - OAuth2 Bearer:
+ - write:filters
+ summary: Delete a single filter keyword with the given ID.
+ tags:
+ - filters
get:
operationId: filterKeywordGet
parameters:
@@ -9641,6 +9682,8 @@ paths:
description: bad request
"401":
description: unauthorized
+ "403":
+ description: forbidden to moved accounts
"404":
description: not found
"406":
@@ -9658,6 +9701,35 @@ paths:
tags:
- filters
/api/v2/filters/statuses/{id}:
+ delete:
+ operationId: filterStatusDelete
+ parameters:
+ - description: ID of the filter status
+ in: path
+ name: id
+ required: true
+ type: string
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: filter status deleted
+ "400":
+ description: bad request
+ "401":
+ description: unauthorized
+ "404":
+ description: not found
+ "406":
+ description: not acceptable
+ "500":
+ description: internal server error
+ security:
+ - OAuth2 Bearer:
+ - write:filters
+ summary: Delete a single filter status with the given ID.
+ tags:
+ - filters
get:
operationId: filterStatusGet
parameters: