zulip/templates/zerver/api
Steve Howell 155f6da8ba bots: Add owner_id to bot-related payloads.
For the below payloads we want `owner_id` instead
of `owner`, which we should deprecate.  (The
`owner` field is actually an email, which is
not a stable key.)

    page_params.realm_bots

    realm_bot/add

    realm_bot/update

IMPORTANT NOTE: Some of the data served in
these payloads is cached with the key
`bot_dicts_in_realm_cache_key`.

For page_params, we get the new field
via `get_owned_bot_dicts`.

For realm_bot/add, we modified
`created_bot_event`.

For realm_bot/update, we modified
`do_change_bot_owner`.

On the JS side, we no longer
look up the bot's owner directly in
`server_events_dispatch` when we get
a realm_bot/update event. Instead, we
delegate that job to `bot_data.js`.
I modified the tests accordingly.
2020-05-11 16:16:58 -07:00
..
add-emoji-reaction.md openapi: Create markdown extension for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
add-linkifiers.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
add-subscriptions.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
api-keys.md api docs: Update api-keys. 2018-09-25 21:02:58 -07:00
changelog.md bots: Add owner_id to bot-related payloads. 2020-05-11 16:16:58 -07:00
client-libraries.md docs: Add top level page for language bindings. 2019-11-22 04:33:18 -08:00
configuring-python-bindings.md api docs: Make minor copyediting changes. 2018-09-25 20:48:12 -07:00
construct-narrow.md docs: Further expand documentation on using IDs in narrows. 2019-09-16 17:17:03 -07:00
create-stream.md api docs: Explain clearly how to create new streams. 2018-07-01 08:41:37 -07:00
create-user-group.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
create-user.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
deactivate-user.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
delete-message.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
delete-queue.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
delete-stream.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
delete-user-group.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
deploying-bots.md docs: Remove duplicate content from deploying-bots.md. 2020-05-11 13:42:22 -07:00
dev-fetch-api-key.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
get-all-streams.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
get-all-users.md api docs: Add an API changelog page. 2020-04-28 22:23:25 -07:00
get-events-from-queue.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
get-message-history.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
get-messages.md api docs: Add an API changelog page. 2020-04-28 22:23:25 -07:00
get-org-emoji.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
get-presence.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
get-profile.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
get-raw-message.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
get-stream-id.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
get-stream-topics.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
get-subscribed-streams.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
get-user-groups.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
get-user.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
incoming-webhooks-overview.md docs: Advertise Slack-compatible webhook a bit. 2020-05-11 00:07:28 -07:00
incoming-webhooks-walkthrough.md bots: Allow incoming webhook bots to be configured via /bots. 2019-08-20 17:00:48 -07:00
index.md api docs: Link to our zapier and ifttt /integrations pages. 2018-08-10 10:37:49 -07:00
installation-instructions.md api docs: Fix link to client libraries. 2019-11-22 11:08:44 -08:00
integrations-overview.md docs: Advertise Slack-compatible webhook a bit. 2020-05-11 00:07:28 -07:00
list-linkifiers.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
mark-as-read-bulk.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
missing.md
mute-topics.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
non-webhook-integrations.md docs: Extract a Writing Documentation top-level section. 2019-05-29 15:52:11 -07:00
outgoing-webhooks.md api_docs: Migrate POST /zulip-outgoing-webhook. 2020-04-02 14:55:32 -07:00
real-time-events.md api docs: Migrate REAL-TIME /events to OpenAPI. 2020-03-27 17:43:35 -07:00
register-queue.md docs: Make register-queue use curl example system. 2019-10-15 15:53:03 -07:00
remove-emoji-reaction.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
remove-linkifiers.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
remove-subscriptions.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
render-message.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
rest-error-handling.md openapi: Use serialized response codes instead of descriptive ones. 2020-04-17 11:49:58 -07:00
rest.md docs: Add top level page for language bindings. 2019-11-22 04:33:18 -08:00
running-bots.md api: Document using `pip3 install` for zulip_bots(erver). 2019-08-23 15:51:06 -07:00
send-message.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
server-settings.md docs: Fix recent regression with server-settings. 2020-05-08 06:49:32 -04:00
sidebar_index.md api docs: Add an API changelog page. 2020-04-28 22:23:25 -07:00
typing.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
update-message-flags.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
update-message.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
update-notification-settings.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
update-stream.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
update-subscription-properties.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
update-user-group.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
update-user.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
upload-custom-emoji.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
upload-file.md openapi: Use description markdown for rendering endpoint descriptions. 2020-04-28 12:57:19 -07:00
writing-bots.md python: Convert more variable type annotations to Python 3.6 style. 2020-05-08 16:42:43 -07:00