mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
apidocs: Move stray message history description to OpenAPI.
This commit is contained in:
parent
8d7634a572
commit
aedca6d6c6
@ -27,16 +27,6 @@
|
||||
|
||||
{generate_return_values_table|zulip.yaml|/messages/{message_id}/history:get}
|
||||
|
||||
Please note that the original message's snapshot only contains the fields
|
||||
`topic`, `content`, `rendered_content`, `timestamp` and `user_id`. This
|
||||
snapshot will be the only one present if the message has never been edited.
|
||||
|
||||
Also note that if a message's content was edited (but not the topic)
|
||||
or the topic was edited (but not the content), the snapshot object
|
||||
will only contain data for the modified fields (e.g. if only the topic
|
||||
was edited, `prev_content`, `prev_rendered_content`, and
|
||||
`content_html_diff` will not appear).
|
||||
|
||||
{generate_response_description(/messages/{message_id}/history:get)}
|
||||
|
||||
#### Example response
|
||||
|
||||
@ -4471,6 +4471,16 @@ paths:
|
||||
[edit-settings]: /help/view-a-messages-edit-history
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/MessageId"
|
||||
x-response-description: |
|
||||
Please note that the original message's snapshot only contains the fields
|
||||
`topic`, `content`, `rendered_content`, `timestamp` and `user_id`. This
|
||||
snapshot will be the only one present if the message has never been edited.
|
||||
|
||||
Also note that if a message's content was edited (but not the topic)
|
||||
or the topic was edited (but not the content), the snapshot object
|
||||
will only contain data for the modified fields (e.g. if only the topic
|
||||
was edited, `prev_content`, `prev_rendered_content`, and
|
||||
`content_html_diff` will not appear).
|
||||
responses:
|
||||
"200":
|
||||
description: Success.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user