api: Rename edit typing endpoint to /messages/{message_id}/typing.

This is more consistent with how other URLs work in Zulip.

Replaces `/message_edit_typing` with `/messages/{message_id}/typing`.
The `message_id` parameter, previously passed in the request body,
is now included in the URL path.
This commit is contained in:
opmkumar
2025-03-01 01:23:17 +05:30
committed by Tim Abbott
parent 61db2bc158
commit c97fd1bca5
8 changed files with 57 additions and 53 deletions

View File

@@ -399,7 +399,7 @@ v1_api_and_json_patterns = [
# POST sends a typing notification event to recipients
rest_path("typing", POST=send_notification_backend),
# POST sends a message edit typing notification
rest_path("message_edit_typing", POST=send_message_edit_notification_backend),
rest_path("messages/<int:message_id>/typing", POST=send_message_edit_notification_backend),
# user_uploads -> zerver.views.upload
rest_path("user_uploads", POST=upload_file_backend),
rest_path(