Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
apidocs: Add summary field to endpoints.
Suyash Vardhan Mathure15af5ae1457
diff --git a/templates/zerver/api/mark-all-as-read.md b/templates/zerver/api/mark-all-as-read.mdindex f3d6523114d..395954a92d0 100644--- a/templates/zerver/api/mark-all-as-read.md+++ b/templates/zerver/api/mark-all-as-read.md@@ -28,9 +28,9 @@ A typical successful JSON response may look like:{generate_code_example|/mark_all_as_read:post|fixture(200)}-# Mark messages in a stream as read+{generate_api_title(/mark_stream_as_read:post)}-Mark all the unread messages in a stream as read.+{generate_api_description(/mark_stream_as_read:post)}`POST {{ api_url }}/v1/mark_stream_as_read`@@ -61,8 +61,9 @@ A typical successful JSON response may look like:# Mark messages in a topic as read+{generate_api_title(/mark_topic_as_read:post)}-Mark all the unread messages in a topic as read.+{generate_api_description(/mark_all_as_read:post)}`POST {{ api_url }}/v1/mark_topic_as_read`diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex 29bf68a422a..51d0e824ea8 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -42,6 +42,7 @@ paths:/fetch_api_key:post:operationId: fetch_api_key+ summary: Fetch an API key (production)tags: ["authentication"]description: |This API endpoint is used by clients such as the Zulip mobile and@@ -99,6 +100,7 @@ paths:/dev_fetch_api_key:post:operationId: dev_fetch_api_key+ summary: Fetch an API key (development only)tags: ["authentication"]description: |For easy testing of mobile apps and other clients and against Zulip@@ -132,6 +134,7 @@ paths:/events:get:operationId: get_events+ summary: Get events from an event queuetags: ["real_time_events"]description: |`GET {{ api_url }}/v1/events`@@ -3824,6 +3827,7 @@ paths:$ref: "#/components/schemas/BadEventQueueIdError"delete:operationId: delete_queue+ summary: Delete an event queuetags: ["real_time_events"]description: |Delete a previously registered queue.@@ -3847,6 +3851,7 @@ paths:/get_stream_id:get:operationId: get_stream_id+ summary: Get stream IDtags: ["streams"]description: |Get the unique ID of a given stream.@@ -3894,6 +3899,7 @@ paths:/mark_all_as_read:post:operationId: mark_all_as_read+ summary: Mark all messages as readtags: ["messages"]description: |Marks all of the current user's unread messages as read.@@ -3909,6 +3915,7 @@ paths:/mark_stream_as_read:post:operationId: mark_stream_as_read+ summary: Mark messages in a stream as readtags: ["messages"]description: |Mark all the unread messages in a stream as read.@@ -3931,6 +3938,7 @@ paths:/mark_topic_as_read:post:operationId: mark_topic_as_read+ summary: Mark messages in a topic as readtags: ["messages"]description: |Mark all the unread messages in a topic as read.@@ -3961,6 +3969,7 @@ paths:/attachments:get:operationId: get_attachments+ summary: Get attachmentstags: ["users"]description: |Fetch metadata on files uploaded by the requesting user.@@ -4014,6 +4023,7 @@ paths:/messages:get:operationId: get_messages+ summary: Get messagestags: ["messages"]description: |Fetch message history from a Zulip server.@@ -4256,6 +4266,7 @@ paths:}post:operationId: send_message+ summary: Send a messagetags: ["messages"]description: |Send a stream or a private message.@@ -4359,6 +4370,7 @@ paths:/messages/{message_id}/history:get:operationId: get_message_history+ summary: Get a message's edit historytags: ["messages"]description: |Fetch the message edit history of a previously edited message.@@ -4466,6 +4478,7 @@ paths:/messages/flags:post:operationId: update_message_flags+ summary: Update personal message flagstags: ["messages"]description: |Add or remove personal message flags like `read` and `starred`@@ -4531,6 +4544,7 @@ paths:/messages/render:post:operationId: render_message+ summary: Render messagetags: ["messages"]description: |Render a message to HTML.@@ -4563,6 +4577,7 @@ paths:/messages/{message_id}/reactions:post:operationId: add_reaction+ summary: Add an emoji reactiontags: ["messages"]description: |Add an [emoji reaction](/help/emoji-reactions) to a message.@@ -4605,6 +4620,7 @@ paths:delete:operationId: remove_reaction+ summary: Remove an emoji reactiontags: ["messages"]description: |Remove an [emoji reaction](/help/emoji-reactions) from a message.@@ -4646,6 +4662,7 @@ paths:/messages/matches_narrow:get:operationId: check_messages_match_narrow+ summary: NO MD FILE.tags: ["messages"]description: |Check whether a set of messages match a [narrow](/api/construct-narrow).@@ -4742,6 +4759,7 @@ paths:/messages/{message_id}:get:operationId: get_raw_message+ summary: Get a message's raw Markdowntags: ["messages"]description: |Get the raw content of a message.@@ -4784,6 +4802,7 @@ paths:$ref: "#/components/schemas/InvalidMessageError"patch:operationId: update_message+ summary: Edit a messagetags: ["messages"]description: |Edit/update the content or topic of a message.@@ -4874,6 +4893,7 @@ paths:}delete:operationId: delete_message+ summary: Delete a messagetags: ["messages"]description: |Permanently delete a message.@@ -4910,6 +4930,7 @@ paths:/user_uploads:post:operationId: upload_file+ summary: Upload a filetags: ["messages"]description: |Upload a single file and get the corresponding URI.@@ -4959,6 +4980,7 @@ paths:/user_uploads/{realm_id_str}/{filename}:get:operationId: get_file_temporary_url+ summary: NO MD FILE.tags: ["messages"]description: |Get a temporary URL for access to the file that doesn't require authentication.@@ -5006,6 +5028,7 @@ paths:/users:get:operationId: get_users+ summary: Get all userstags: ["users"]description: |Retrieve details on all users in the organization. Optionally@@ -5116,6 +5139,7 @@ paths:}post:operationId: create_user+ summary: Create a usertags: ["users"]description: |{!can-create-users-only.md!}@@ -5183,6 +5207,7 @@ paths:/users/{user_id}/reactivate:post:operationId: reactivate_user+ summary: Reactivate a usertags: ["users"]description: |{!api-admin-only.md!}@@ -5207,6 +5232,7 @@ paths:/users/{user_id_or_email}/presence:get:operationId: get_user_presence+ summary: Get user presencetags: ["users"]description: |Get the presence status for a specific user.@@ -5294,6 +5320,7 @@ paths:/users/me:get:operationId: get_own_user+ summary: Get own usertags: ["users"]description: |Get basic data about the user/bot that requests this endpoint.@@ -5477,6 +5504,7 @@ paths:}delete:operationId: deactivate_own_user+ summary: Deactivate own usertags: ["users"]description: |Deactivates the user's account. See also the administrative endpoint for@@ -5509,6 +5537,7 @@ paths:/users/me/{stream_id}/topics:get:operationId: get_stream_topics+ summary: Get topics in a streamtags: ["streams"]description: |Get all the topics in a specific stream@@ -5571,6 +5600,7 @@ paths:/users/me/subscriptions:get:operationId: get_subscriptions+ summary: Get subscribed streamstags: ["streams"]description: |Get all streams that the user is subscribed to.@@ -5643,6 +5673,7 @@ paths:}post:operationId: subscribe+ summary: Subscribe to a streamtags: ["streams"]description: |Subscribe one or more users to one or more streams.@@ -5761,6 +5792,7 @@ paths:}patch:operationId: update_subscriptions+ summary: NO MD FILE.tags: ["streams"]description: |Update which streams you are are subscribed to.@@ -5877,6 +5909,7 @@ paths:}delete:operationId: unsubscribe+ summary: Unsubscribe from a streamtags: ["streams"]description: |Unsubscribe yourself or other users from one or more streams.@@ -5939,6 +5972,7 @@ paths:/users/me/subscriptions/muted_topics:patch:operationId: mute_topic+ summary: Topic mutingtags: ["streams"]description: |This endpoint mutes/unmutes a topic within a stream that the current@@ -6008,6 +6042,7 @@ paths:/users/me/muted_users/{muted_user_id}:post:operationId: mute_user+ summary: Mute a usertags: ["users"]description: |This endpoint [mutes a user](/help/mute-a-user). Messages sent by users@@ -6069,6 +6104,7 @@ paths:{"msg": "User already muted", "result": "error"}delete:operationId: unmute_user+ summary: Unmute a usertags: ["users"]description: |This endpoint unmutes a user.@@ -6103,6 +6139,7 @@ paths:/users/{user_id}/subscriptions/{stream_id}:get:operationId: get_subscription_status+ summary: Get subscription statustags: ["streams"]description: |Check whether a user is subscribed to a stream.@@ -6134,6 +6171,7 @@ paths:/realm/emoji/{emoji_name}:post:operationId: upload_custom_emoji+ summary: Upload custom emojitags: ["server_and_organizations"]description: |This endpoint is used to upload a custom emoji for use in the user's@@ -6170,6 +6208,7 @@ paths:/realm/emoji:get:operationId: get_custom_emoji+ summary: Get all custom emojitags: ["server_and_organizations"]description: |Get all the custom emoji in the user's organization.@@ -6213,6 +6252,7 @@ paths:/realm/profile_fields:get:operationId: get_custom_profile_fields+ summary: Get all custom profile fieldstags: ["server_and_organizations"]description: |Get all the [custom profile fields](/help/add-custom-profile-fields)@@ -6312,6 +6352,7 @@ paths:}patch:operationId: reorder_custom_profile_fields+ summary: Reorder custom profile fieldstags: ["server_and_organizations"]description: |{!api-admin-only.md!}@@ -6348,6 +6389,7 @@ paths:$ref: "#/components/schemas/JsonSuccess"post:operationId: create_custom_profile_field+ summary: Create a custom profile fieldtags: ["server_and_organizations"]description: |{!api-admin-only.md!}@@ -6431,6 +6473,7 @@ paths:/users/me/subscriptions/properties:post:operationId: update_subscription_settings+ summary: Update subscription settingstags: ["streams"]description: |This endpoint is used to update the user's personal settings for the@@ -6566,6 +6609,7 @@ paths:/users/{email}:get:operationId: get_user_by_email+ summary: Get a user by emailtags: ["users"]description: |Fetch details for a single user in the organization given a Zulip display@@ -6655,6 +6699,7 @@ paths:/users/{user_id}:get:operationId: get_user+ summary: Get a usertags: ["users"]description: |Fetch details for a single user in the organization.@@ -6729,6 +6774,7 @@ paths:}patch:operationId: update_user+ summary: Update a usertags: ["users"]description: |{!api-admin-only.md!}@@ -6809,6 +6855,7 @@ paths:delete:operationId: deactivate_user+ summary: Deactivate a usertags: ["users"]description: |{!api-admin-only.md!}@@ -6844,6 +6891,7 @@ paths:/realm/linkifiers:get:operationId: get_linkifiers+ summary: Get linkifierstags: ["server_and_organizations"]description: |List all of an organization's configured@@ -6905,6 +6953,7 @@ paths:/realm/filters:post:operationId: add_linkifier+ summary: Add a linkifiertags: ["server_and_organizations"]description: |Configure [linkifiers](/help/add-a-custom-linkifier),@@ -6935,6 +6984,7 @@ paths:/realm/filters/{filter_id}:delete:operationId: remove_linkifier+ summary: Remove a linkifiertags: ["server_and_organizations"]description: |Remove [linkifiers](/help/add-a-custom-linkifier), regular@@ -6960,6 +7010,7 @@ paths:$ref: "#/components/schemas/JsonSuccess"patch:operationId: update_linkifier+ summary: Update a linkifiertags: ["server_and_organizations"]description: |Update a [linkifier](/help/add-a-custom-linkifier), regular@@ -6990,6 +7041,7 @@ paths:/realm/playgrounds:post:operationId: add_code_playground+ summary: Remove a code playgroundtags: ["server_and_organizations"]description: |Configure [code playgrounds](/help/code-blocks#code-playgrounds) for the organization.@@ -7046,6 +7098,7 @@ paths:/realm/playgrounds/{playground_id}:delete:operationId: remove_code_playground+ summary: Remove a code playgroundtags: ["server_and_organizations"]description: |Remove a [code playground](/help/code-blocks#code-playgrounds) previously@@ -7073,6 +7126,7 @@ paths:/register:post:operationId: register_queue+ summary: Register an event queuetags: ["real_time_events"]description: |This powerful endpoint can be used to register a Zulip "event queue"@@ -9074,6 +9128,7 @@ paths:/server_settings:get:operationId: get_server_settings+ summary: Get server settingstags: ["server_and_organizations"]description: |Fetch global settings for a Zulip server.@@ -9310,6 +9365,7 @@ paths:/settings/notifications:patch:operationId: update_notification_settings+ summary: Update notification settingstags: ["users"]description: |This endpoint is used to edit the user's global notification settings.@@ -9544,6 +9600,7 @@ paths:/settings/display:patch:operationId: update_display_settings+ summary: Update display settingstags: ["users"]description: |This endpoint is used to edit the current user's user interface settings.@@ -9778,6 +9835,7 @@ paths:/streams:get:operationId: get_streams+ summary: Get all streamstags: ["streams"]description: |Get all streams that the user has access to.@@ -9933,6 +9991,7 @@ paths:/streams/{stream_id}:delete:operationId: archive_stream+ summary: Archive a streamtags: ["streams"]description: |[Archive the stream](/help/archive-a-stream) with the ID `stream_id`.@@ -9964,6 +10023,7 @@ paths:}patch:operationId: update_stream+ summary: Update a streamtags: ["streams"]description: |Configure the stream with the ID `stream_id`. This endpoint supports@@ -10049,6 +10109,7 @@ paths:/typing:post:operationId: set_typing_status+ summary: Set "typing" statustags: ["users"]description: |Notify other users whether the current user is typing a message.@@ -10157,6 +10218,7 @@ paths:/user_groups/create:post:operationId: create_user_group+ summary: Create a user grouptags: ["users"]description: |Create a new [user group](/help/user-groups).@@ -10217,6 +10279,7 @@ paths:/user_groups/{user_group_id}/members:post:operationId: update_user_group_members+ summary: Update user group memberstags: ["users"]description: |Update the members of a [user group](/help/user-groups).@@ -10254,6 +10317,7 @@ paths:/user_groups/{user_group_id}:patch:operationId: update_user_group+ summary: Update a user grouptags: ["users"]description: |Update the name or description of a [user group](/help/user-groups).@@ -10296,6 +10360,7 @@ paths:}delete:operationId: remove_user_group+ summary: Delete a user grouptags: ["users"]description: |Delete a [user group](/help/user-groups).@@ -10330,6 +10395,7 @@ paths:/user_groups:get:operationId: get_user_groups+ summary: Get user groupstags: ["users"]description: |Fetches all of the user groups in the organization.@@ -10414,6 +10480,7 @@ paths:/rest-error-handling:post:operationId: rest_error_handling+ summary: Error handlingtags: ["real_time_events"]description: |Common error to many endpoints@@ -10440,6 +10507,7 @@ paths:/zulip-outgoing-webhook:post:operationId: zulip_outgoing_webhooks+ summary: NO MD FILE.tags: ["webhooks"]description: |Outgoing webhooks allows to build or set up Zulip integrations which are@@ -10543,6 +10611,7 @@ paths:get:tags: ["streams"]operationId: create_big_blue_button_video_call+ summary: NO MD FILE.description: |Create a video call URL for a Big Blue Button video call.Requires Big Blue Button to be configured on the Zulip server.