zulip/zerver/views
Kevin Lin b2c29274f3 presence: Allow bots to fetch realm presence data.
Before, presence information for an entire realm could only be queried via
the `POST /api/v1/users/me/presence` endpoint. However, this endpoint also
updates the presence information for the user making the request. Therefore,
bot users are not allowed to access this endpoint because they don't have
any presence data.

This commit adds a new endpoint `GET /api/v1/realm/presence` that just
returns the presence information for the realm of the caller.

Fixes #10651.
2018-10-15 12:51:28 -07:00
..
__init__.py
alert_words.py alert words: Return the updated list when adding/removing words. 2018-07-13 01:01:00 +05:30
archive.py archives: Add endpoint to fetch topic history of web public streams. 2018-07-14 09:51:37 +05:30
attachments.py attachments: Send events for attachment updates. 2018-05-04 16:22:27 -07:00
auth.py mobile: Make otp_encrypt_api_key accept API keys. 2018-08-08 16:45:40 -07:00
compatibility.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
custom_profile_fields.py events: Convert custom user field value to json object on update event. 2018-08-22 22:45:08 -07:00
email_log.py email_log: Only import Django test client when using it. 2018-08-08 14:19:42 -07:00
email_mirror.py mypy: Use Python 3 type syntax in zerver/views/email_mirror.py. 2017-12-28 07:26:44 -05:00
events_register.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
home.py models: Move billing models from zilencer to corporate. 2018-10-11 14:54:29 -07:00
hotspots.py
integrations.py templates: Merge Help and API doc main into documentation_main. 2018-08-27 20:19:24 -02:30
invite.py invite: Make inviting new users inaccessible for guest users. 2018-06-16 06:33:13 -07:00
messages.py narrow: Handle spurious emails in pm-with searches. 2018-10-12 10:18:30 -07:00
muting.py muting: Correct agrammatical error message. 2018-08-27 14:12:03 -07:00
pointer.py do_update_pointer: Pass client object from callers. 2018-08-01 16:40:15 -07:00
presence.py presence: Allow bots to fetch realm presence data. 2018-10-15 12:51:28 -07:00
push_notifications.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
reactions.py reactions: Allow using emoji_name for removing reactions. 2018-07-11 19:41:43 +05:30
realm.py models: Rename Realm.restricted_to_domain field. 2018-07-31 09:28:33 -07:00
realm_domains.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
realm_emoji.py emoji: Show emoji names with spaces on front-end. 2018-08-04 09:40:52 -07:00
realm_filters.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
realm_icon.py
registration.py urls: Separate endpoint for signup and new realm email confirm. 2018-08-26 22:53:57 -07:00
report.py mypy: Set local_partial_types = True. 2018-05-21 22:41:00 -07:00
storage.py mypy: Migrate views/storage.py to python3.5 type annotations. 2018-03-12 11:23:30 -07:00
streams.py i18n: Fix hard-to-translate notification bot string. 2018-08-09 08:37:23 -07:00
submessage.py submessages: Just send content for submessage events. 2018-05-30 13:53:11 -07:00
thumbnail.py thumbnails: Change thumbnail size to be 300px. 2018-10-11 15:44:47 -07:00
tutorial.py mypy: Use Python 3 syntax for typing in views/tutorial.py. 2017-12-08 18:34:26 -08:00
typing.py views: Change use of typing.Text to str. 2018-04-23 18:51:23 -07:00
unsubscribe.py requirements: Upgrade pyflakes to 2.0.0. 2018-05-24 11:31:36 -07:00
upload.py upload: Remove unnecessary use of has_request_variables. 2018-07-01 01:47:03 -07:00
user_groups.py api: Add an endpoint for listing the user groups in realm. 2018-08-27 16:56:23 -07:00
user_settings.py user_settings: Compare new stripped email with old email. 2018-10-11 15:55:32 -07:00
users.py avatar: Allow API authentication for /avatar/ routes. 2018-10-11 15:52:29 -07:00
zephyr.py users: Get all API keys via wrapper method. 2018-08-08 16:35:17 -07:00