mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
api: Add "users/<int:user_id>/status" endpoint.
The documentation Creates a shared UserStatus schema that's used for the return value of this new endpoint and for the existing user_status objects returned by the register queue endpoint. Co-authored-by: Suyash Vardhan Mathur <suyash.mathur@research.iiit.ac.in> Fixes #19079.
This commit is contained in:
@@ -89,6 +89,7 @@ from zerver.views.muted_users import mute_user, unmute_user
|
||||
from zerver.views.onboarding_steps import mark_onboarding_step_as_read
|
||||
from zerver.views.presence import (
|
||||
get_presence_backend,
|
||||
get_status_backend,
|
||||
get_statuses_for_realm,
|
||||
update_active_status_backend,
|
||||
update_user_status_backend,
|
||||
@@ -396,6 +397,7 @@ v1_api_and_json_patterns = [
|
||||
rest_path("users/<user_id_or_email>/presence", GET=get_presence_backend),
|
||||
rest_path("realm/presence", GET=get_statuses_for_realm),
|
||||
rest_path("users/me/status", POST=update_user_status_backend),
|
||||
rest_path("users/<int:user_id>/status", GET=get_status_backend),
|
||||
# user_groups -> zerver.views.user_groups
|
||||
rest_path("user_groups", GET=get_user_group),
|
||||
rest_path("user_groups/create", POST=add_user_group),
|
||||
|
Reference in New Issue
Block a user