Skip to content

Node.js based forum software built for the modern web

chore: fix type.yaml example and summary

Julian Lam591424cea1d9
diff --git a/public/openapi/read/user/uid/userslug/export/type.yaml b/public/openapi/read/user/uid/userslug/export/type.yaml
index f859087247..e0ea7d93d1 100644
--- a/public/openapi/read/user/uid/userslug/export/type.yaml
+++ b/public/openapi/read/user/uid/userslug/export/type.yaml
@@ -1,7 +1,7 @@
get:
tags:
- deprecated
- summary: Export a user's posts (.csv)
+ summary: Export a user's posts/profile/uploads (.csv)
parameters:
- name: userslug
in: path
@@ -10,10 +10,10 @@ get:
type: string
example: admin
responses:
- "200":
- description: "A CSV file containing a user's posts"
- content:
- text/csv:
+ "302":
+ description: A redirect to the new URL format (without the `/uid` prefix)
+ headers:
+ Location:
schema:
type: string
- format: binary
\ No newline at end of file
+ example: /api/user/admin/export/posts
\ No newline at end of file