Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

apidocs: Move stray upload file description to OpenAPI.

Suyash Vardhan Mathurf90b23b265cf
diff --git a/templates/zerver/api/upload-file.md b/templates/zerver/api/upload-file.md
index 91983bd191e..24932297aa1 100644
--- a/templates/zerver/api/upload-file.md
+++ b/templates/zerver/api/upload-file.md
@@ -20,17 +20,6 @@
## Parameters
-As described above, the file to upload must be provided in the
-request's body.
-
-## Maximum file size
-
-The maximum file size for uploads can be configured by the
-administrator of the Zulip server by setting `MAX_FILE_UPLOAD_SIZE`
-in the [server's settings][1]. `MAX_FILE_UPLOAD_SIZE` defaults
-to 25MB.
-
-[1]: https://zulip.readthedocs.io/en/latest/subsystems/settings.html#server-settings
{generate_parameter_description(/user_uploads:post)}
## Response
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 8bd3b970656..375ce1d51a1 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -5190,6 +5190,18 @@ paths:
[uploaded-files]: /help/manage-your-uploaded-files
[send-message]: /api/send-message
+ x-parameter-description: |
+ As described above, the file to upload must be provided in the
+ request's body.
+
+ ## Maximum file size
+
+ The maximum file size for uploads can be configured by the
+ administrator of the Zulip server by setting `MAX_FILE_UPLOAD_SIZE`
+ in the [server's settings][1]. `MAX_FILE_UPLOAD_SIZE` defaults
+ to 25MB.
+
+ [1]: https://zulip.readthedocs.io/en/latest/subsystems/settings.html#server-settings
requestBody:
content:
multipart/form-data: