summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-05-29 12:56:17 +0200
committerLibravatar GitHub <noreply@github.com>2024-05-29 12:56:17 +0200
commitf9a4a6120db69e5ead542cb130533b0c20e2cd66 (patch)
treef2b465c2e79fb63908e8bb7c642f089b0e653020 /docs/api
parent[chore/bugfix] Don't cache MovedTo account (#2939) (diff)
downloadgotosocial-f9a4a6120db69e5ead542cb130533b0c20e2cd66.tar.xz
[feature] Debug admin endpoint to clear caches (#2940)
* [feature] Debug admin endpoint to clear caches * go fmt
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/swagger.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index b069eaf55..b86d4b9eb 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -4494,6 +4494,31 @@ paths:
summary: Perform a GET to the specified ActivityPub URL and return detailed debugging information.
tags:
- debug
+ /api/v1/admin/debug/caches/clear:
+ post:
+ description: Only enabled / exposed if GoToSocial was built and is running with flag DEBUG=1.
+ operationId: debugClearCaches
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: All good baby!
+ "400":
+ description: bad request
+ "401":
+ description: unauthorized
+ "404":
+ description: not found
+ "406":
+ description: not acceptable
+ "500":
+ description: internal server error
+ security:
+ - OAuth2 Bearer:
+ - admin
+ summary: Sweep/clear all in-memory caches.
+ tags:
+ - debug
/api/v1/admin/domain_allows:
get:
operationId: domainAllowsGet