Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
api-docs: Expand use of `SimpleSuccess` response schema.
Lauryn Menard82c9c6f59952
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex acacc26c60e..a8905bb851d 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -4311,13 +4311,7 @@ paths:- $ref: "#/components/parameters/QueueId"responses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -4390,13 +4384,7 @@ paths:`POST {{ api_url }}/v1/mark_all_as_read`responses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess"/mark_stream_as_read:post:operationId: mark-stream-as-read@@ -4415,13 +4403,7 @@ paths:required: trueresponses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess"/mark_topic_as_read:post:operationId: mark-topic-as-read@@ -4448,13 +4430,7 @@ paths:required: trueresponses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess"/attachments:get:operationId: get-attachments@@ -4747,13 +4723,7 @@ paths:required: Trueresponses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess""404":description: Not Found.content:@@ -4784,13 +4754,7 @@ paths:example: 1responses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess""404":description: Not Found.content:@@ -6013,13 +5977,7 @@ paths:example: 43responses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -6063,13 +6021,7 @@ paths:- $ref: "#/components/parameters/MessageId"responses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -6418,14 +6370,7 @@ paths:- $ref: "#/components/parameters/UserId"responses:"200":- description: Success- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/SuccessDescription"- - $ref: "#/components/schemas/JsonSuccess"- - example: {"msg": "", "result": "success"}+ $ref: "#/components/responses/SimpleSuccess"/users/{user_id_or_email}/presence:get:@@ -6724,14 +6669,7 @@ paths:This endpoint is primarily useful to Zulip clients providing a user settings UI.responses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"- - example: {"msg": "", "result": "success"}+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -6835,14 +6773,7 @@ paths:required: falseresponses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"- - example: {"msg": "", "result": "success"}+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -7499,13 +7430,7 @@ paths:required: trueresponses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -7566,14 +7491,7 @@ paths:- $ref: "#/components/parameters/MutedUserId"responses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"- - example: {"msg": "", "result": "success"}+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -7610,14 +7528,7 @@ paths:- $ref: "#/components/parameters/MutedUserId"responses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"- - example: {"msg": "", "result": "success"}+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -7717,13 +7628,7 @@ paths:example: /path/to/img.pngresponses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess"/realm/emoji:get:@@ -7903,13 +7808,7 @@ paths:required: trueresponses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess"post:operationId: create-custom-profile-fieldsummary: Create a custom profile field@@ -8792,14 +8691,7 @@ paths:- $ref: "#/components/parameters/UserId"responses:"200":- description: Success- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"- - example: {"msg": "", "result": "success"}+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -8932,13 +8824,7 @@ paths:required: trueresponses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess"patch:operationId: update-linkifiersummary: Update a linkifier@@ -8964,13 +8850,7 @@ paths:- $ref: "#/components/parameters/LinkifierURLFormatString"responses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess"/realm/playgrounds:post:operationId: add-code-playground@@ -9052,13 +8932,7 @@ paths:required: trueresponses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess"/register:post:operationId: register-queue@@ -13515,14 +13389,7 @@ paths:- $ref: "#/components/parameters/StreamIdInPath"responses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"- - example: {"msg": "", "result": "success"}+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -13631,14 +13498,7 @@ paths:- $ref: "#/components/parameters/MessageRetentionDays"responses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"- - example: {"msg": "", "result": "success"}+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -13679,13 +13539,7 @@ paths:required: trueresponses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -13812,13 +13666,7 @@ paths:example: typing notificationsresponses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -13876,14 +13724,7 @@ paths:required: trueresponses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"- - example: {"msg": "", "result": "success"}+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.content:@@ -14035,14 +13876,7 @@ paths:- $ref: "#/components/parameters/UserGroupId"responses:"200":- description: Success.- content:- application/json:- schema:- allOf:- - $ref: "#/components/schemas/JsonSuccess"- - $ref: "#/components/schemas/SuccessDescription"- - example: {"result": "success", "msg": ""}+ $ref: "#/components/responses/SimpleSuccess""400":description: Bad request.