Yago González
3bdc8f9946
api: Document the GET /realm/emoji endpoint.
2018-10-16 11:51:48 -07:00
Yago González
7a7b507e86
api docs: Document DELETE /realm/filters/<filter_id>.
2018-10-16 11:51:48 -07:00
Yago González
a7c48acc8e
api docs: Document GET /realm/filters.
2018-10-16 11:51:48 -07:00
Steve Howell
395d74c08a
api docs: Clean up outgoing webhooks section.
...
I rewrote the section explaining what the
endpoint sends back to the server. This fixes
a few typos, emphasizes the normal case, and
starts to favor "content" as the key for
content.
2018-10-11 16:12:07 -07:00
Tim Abbott
83bcea3917
api: Fix docs to point to /latest/ for integration docs.
...
Pointing to /stable/ doesn't work, since that article doesn't exist in
the 1.8.0 release series.
2018-10-10 12:19:14 -07:00
Rishi Gupta
bf22eefede
api docs: Move integration-docs-guide to docs/.
2018-10-09 20:28:44 -07:00
Callum Fraser
383f1633e6
api: Add limit of total messages available per request of 5000.
...
Tweaked by tabbott to use a declared constant rather than just use
5000 in multiple places; this also means we can change the count
without updating translations.
Fixes #10446 .
2018-10-09 15:43:21 -07:00
Tim Abbott
a943e55863
docs: Move LDAP documentation out of plug-and-play section.
...
Also update the links to this section.
2018-09-27 13:38:14 -07:00
Rishi Gupta
7f16d27015
api docs: Update api-keys.
2018-09-25 21:02:58 -07:00
Rishi Gupta
78f8fac106
api docs: Make minor copyediting changes.
2018-09-25 20:48:12 -07:00
Eeshan Garg
0817905480
api docs: Use Markdown extension for tabbed sections.
2018-09-18 13:49:34 -07:00
Yago González
ea10f5eb2c
api docs: Document GET /users/<email>/presence.
...
Tweaked by tabbott to describe more clearly what this is for.
2018-08-31 15:15:54 -07:00
Yago González
78f85ef960
api docs: Document the GET /messages/<message_id>/history endpoint.
2018-08-28 17:33:02 -07:00
Yago González
5c6f381f32
api docs: Document the DELETE /messages/<message_id> endpoint.
2018-08-28 17:26:49 -07:00
Yago González
9575f1b51f
api docs: Document the GET /messages/<message_id> endpoint.
2018-08-28 17:22:28 -07:00
Yago González
ab164ba740
api docs: Document the GET /messages endpoint.
2018-08-28 17:17:46 -07:00
Yago González
c36cf95dc8
api docs: Document GET /server_settings.
2018-08-27 17:45:50 -07:00
Tim Abbott
0af7a12197
api: Fix typos in doc on constructing narrows.
2018-08-27 17:37:37 -07:00
Lyla Fischer
1efcdfdb5c
templates: Merge Help and API doc main into documentation_main.
...
With minor fixes by eeshangarg.
2018-08-27 20:19:24 -02:30
Yago González
54464feda7
api docs: Document the PATCH /users/me/subscriptions/muted_topics endpoint.
2018-08-26 23:10:21 -07:00
Yago González
e7c7b19507
api docs: Document POST /realm/filters.
2018-08-22 17:42:14 -07:00
Yago González
fcf1e3cd88
api docs: Add guide for creating narrows.
...
Dramatically edited by tabbott to simplify the discussion and
duplication of content in our main search documentation.
2018-08-22 17:16:27 -07:00
Yago González
aa5185fdf8
api docs: Document POST /typing.
2018-08-17 12:57:40 -07:00
Rishi Gupta
e7374a0852
api docs: Link to our zapier and ifttt /integrations pages.
2018-08-10 10:37:49 -07:00
Yago González
90e3b8d808
api docs: Remove unnecessary argument entry.
2018-08-08 09:29:27 -07:00
Yago González
8d0cf3ebe5
api docs: Migrate POST /user_uploads to OpenAPI.
2018-08-08 09:29:27 -07:00
Yago González
119b3c0bc4
api docs: Migrate DELETE /users/me/subscriptions to OpenAPI.
2018-08-08 09:29:27 -07:00
Yago González
14c9277095
api docs: Migrate POST /users to OpenAPI.
2018-08-08 09:29:27 -07:00
Yago González
2b8bb2ffc6
api docs: Migrate DELETE /events to OpenAPI.
2018-08-02 15:54:41 -07:00
Yago González
5f3268cc48
api docs: Migrate GET /events to OpenAPI.
2018-08-02 15:54:41 -07:00
Yago González
c28db51da2
api docs: Improve phrasing for /events.
2018-08-02 15:54:41 -07:00
Yago González
5631645d9f
api docs: Migrate /register to OpenAPI.
2018-08-02 15:54:41 -07:00
Yago González
40a21f6077
api docs: Migrate GET /users to OpenAPI.
2018-07-26 15:34:31 -07:00
Yago González
7c50f6cdd4
api docs: Migrate POST /messages/render to OpenAPI.
2018-07-26 15:34:31 -07:00
Yago González
57c2d8c72a
api docs: Migrate GET /get_stream_id to OpenAPI.
2018-07-26 15:34:31 -07:00
Yago González
679319a735
api docs: Migrate GET /streams to OpenAPI.
2018-07-26 15:34:31 -07:00
Yago González
7ddc6e8d10
api docs: Migrate POST /messages to OpenAPI.
2018-07-26 10:24:01 -07:00
Yago González
cb24756edc
api docs: Merge docs for sending stream and private messages.
2018-07-26 10:24:01 -07:00
Lyla Fischer
d50faa4d81
user docs: Add reference to support email in docs footer.
2018-07-24 11:10:23 -07:00
Rhea Parekh
b6ce93e029
outgoing webhooks: Fix sample values for slack outgoing webhooks.
...
This switches us to use the correct timestamp, service_id and token
formats. The 'service_id' should be the ID of the bot user. The token
should be a sample token generated from 'random_api_key()'.
2018-07-23 08:07:56 -07:00
Eeshan Garg
37e7cb4b96
outgoing-webhooks.md: Use HTML tables to document payload fields.
2018-07-14 09:44:54 +05:30
Eeshan Garg
2e78a56796
outgoing-webhooks.md: Add example payloads/fixtures.
2018-07-14 09:44:54 +05:30
Cynthia Lin
ab9f167053
help: Refactor help page CSS to eliminate padding on content containers.
...
This is essential for using simplebar, since simplebar doesn't account
for parent <div> paddings, which might cause scrollbars to be mispositioned
if not considered.
2018-07-13 18:03:32 +05:30
Eeshan Garg
d60037c91b
deploying_bots.md: Fix a couple of minor formatting issues.
2018-07-10 10:01:16 +05:30
Eeshan Garg
026493f791
api_docs: Split integration-guide.md into separate docs.
...
This commit carves out the overview for incoming webhooks and
moves it to its own file. This is a much better way to structure
these docs.
This is a quick follow-up to Tim Abbott's comment on #9592 .
2018-07-09 14:59:17 -02:30
Anders Kaseorg
b618c644a3
HTML validation: Quote <my-bot> and <api_key> placeholders in api docs.
...
They were being sent to the browser as non-renderable HTML tags.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2018-07-09 10:00:56 +05:30
Anders Kaseorg
3806c092c6
HTML validation: Fix problems with tag nesting.
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2018-07-09 10:00:56 +05:30
Yago González
fa2daf0044
api docs: Migrate POST /users/me/subscriptions to OpenAPI.
2018-07-03 20:15:34 +02:00
Yago González
bba8b88707
api docs: Explain clearly how to create new streams.
...
Tweaked significantly by tabbott to cover this more clearly.
2018-07-01 08:41:37 -07:00
Yago González
9a2036b52a
api docs: Make the Home page more straightforward.
...
Fixes #9854 .
2018-07-01 04:33:04 -07:00
Rishi Gupta
89a59422cc
api docs: Fix link to IFTTT.
...
Old link is 404'ing.
2018-06-29 22:40:16 -07:00
Yago González
8e50564717
api docs: Document the /users/me/<stream_id>/topics endpoint.
2018-06-23 12:42:11 +02:00
Lyla Fischer
3ccae20566
docs: Remove the footer, which directed people to help with docs.
2018-06-12 13:42:30 -04:00
Eeshan Garg
0a43e5e257
Replace all user-facing references to "invite-only" with "private".
...
Fixes #9611 .
2018-06-12 13:37:45 -04:00
Robert Hönig
620b473cc8
botserver: Rename zulip-bot-server to zulip-botserver.
2018-06-04 08:39:25 -07:00
Robert Hönig
f0284c84d6
bot docs: Update botserverrc examples.
...
THe botserverrc sections now include
a token for each bot.
2018-06-04 08:39:25 -07:00
Tim Abbott
0e354a4a23
api: Document BAD_EVENT_QUEUE_ID errors more completely.
2018-06-01 12:41:50 -07:00
Tim Abbott
ba835e3511
api: Fix response fixtures for create-user.
2018-06-01 12:36:12 -07:00
Tim Abbott
9cbf6ad03b
api: Fix response fixtures for delete_queue.
...
These were malformed.
2018-06-01 12:34:51 -07:00
Yago González
f68fedd808
api docs: Make minor phrasing improvement.
2018-06-01 12:03:31 -07:00
Eeshan Garg
f5bfa4e793
css: Fix code block formatting issues in our Markdown docs.
2018-06-01 09:19:42 -07:00
Eeshan Garg
4f98a45507
docs: Rename "webhooks" to "incoming webhooks".
...
I only renamed references that I thought were absolutely necessary
and only if the resulting sentence structure wasn't awkward.
If the renaming resulted in awkward structure, I replaced the term
"webhook" with "integration" (but only in some very obvious cases).
Fixes #9500 .
2018-05-30 18:21:13 -07:00
Robert Hönig
fe6b46dfa6
docs: Consistently use Botserver instead of botserver or bot server.
2018-05-29 07:27:33 -07:00
Robert Hönig
04d68d2570
code: Rename flaskbotrc to botserverrc.
2018-05-29 10:19:17 +02:00
Yago González
c25855f703
api docs: Fix broken link.
2018-05-28 10:39:25 -07:00
Yago González
f84c9b919b
api docs: Read parameters and response fixtures from OpenAPI files.
2018-05-26 22:49:55 +02:00
Yago González
d87f0ccb4e
api docs: Show Yes/No in the "Required" field of the args table.
2018-05-25 23:31:30 +02:00
Tim Abbott
34354ca62b
docs: Split zulip_botserver discussion of deploying bots.
...
Now we have explicit documentation for the processing of deploying a
single bot, which can be cleaner and simpler.
2018-05-25 11:01:57 -07:00
Robert Hönig
53891a9bed
bots: Don't name section headers in flaskbotrc.
...
The Botserver uses section headers in the flaskbotrc to
determine which bot to run. Silently setting the section
headers to a bot's username is confusing and makes it
harder for Botserver users to figure out how to get the
Botserver to run the bots they want. This commit empties
all flaskbotrc section headers and thus makes the assignment
of bots explicit and mandatory.
2018-05-25 10:33:40 -07:00
Robert Hönig
bdf79f271d
Implement and document new Botserver setup routine.
...
Previously, the Botserver determined which bot to run for an
outgoing webhook by dispatching on a different URL endpoint
for each bot. Now, instead, the Botserver determines which bot
to run by the section header of the bot in the flaskbotrc.
This commit makes the frontend provide the new flaskbotrc
and updates the setup steps for the Botserver in the docs.
2018-05-25 10:33:40 -07:00
vaibhav
cc0d0b55f1
docs: Add documentation for outgoing webhooks.
...
Rewritten by some combination of @rheaparekh and @timabbott to more
clearly discuss what's actually important to users.
2018-05-25 10:30:53 -07:00
Eeshan Garg
3ed20589f2
webhooks: Add generic exception for unexpected webhook events.
...
UnexpectedWebhookEventType is a generic exception that we may
now raise when we encounter a webhook event that is new or one
that we simply aren't aware of.
2018-05-22 08:30:19 -07:00
Tim Abbott
9de80990ea
api: Update links for new /deploying-bots page.
...
Also caught by test-help-documentation.
2018-05-18 16:31:52 -07:00
Tim Abbott
847fc69c79
api: Fix a badly line-wrapped link.
...
Caught by test-help-documentation.
2018-05-18 16:31:36 -07:00
Tim Abbott
dd7507c88a
docs: Add a page on deploying bots in production.
2018-05-18 16:13:17 -07:00
Yago González
f0fa550001
docs: Rename rest_endpoints with dashes.
2018-05-15 09:06:56 -07:00
Eeshan Garg
3a68f998a7
integration-docs-guide: Add a more detailed writing style guide.
...
Most of the recommendations in this guide were written by Rishi
Gupta (rishig), with a few contributions from Eeshan Garg.
2018-05-15 10:06:08 -04:00
Eeshan Garg
fa28ccb952
integration-docs-guide: Trim text documenting Markdown macros.
...
We were devoting too much space/text to documenting our Markdown
macro. It is much more concise to just have a description and a
link to an example doc for each major macro.
2018-05-14 20:14:08 -02:30
Tim Abbott
1f837340d1
api: Fix confusing documentation about services for botserver.
...
This fixes several super-confusing things in these docs. Bot services
aren't a user-facing concept, and also, you need the URL before
creating the bot users.
2018-05-14 09:21:45 -07:00
Tim Abbott
485d5b6335
api: Fix incorrectly coded bullet for zulip_botserver config.
2018-05-14 09:21:45 -07:00
Joshua Pan
e591668d60
bot-docs: Rewrite last section of "Running bots".
2018-05-14 04:27:36 -07:00
Joshua Pan
3952f94157
minor: Add missing period to bot-docs.
2018-05-14 04:27:36 -07:00
Joshua Pan
128aa8b7ee
bot-docs: Remove hint on "Running bots" doc.
...
We already explain testing bot output in
"Writing bots" doc, and the placement of
the hint itself doesn't make sense.
2018-05-14 04:27:36 -07:00
Joshua Pan
0b112cf5e9
bot-docs: Streamline introduction to 'Running a bot'.
2018-05-14 04:27:36 -07:00
Joshua Pan
2b06e1cec7
bot-docs: Renumber list to use all 1's.
2018-05-14 04:27:36 -07:00
Aditya Bansal
a00f3b5843
docs: Update for change from typing.Text to str.
2018-05-14 05:23:36 +05:30
Yago González
610f48dcbc
docs: Explain how to configure the Python bindings.
...
The Python bindings (which are used for bots, amongst other things) can
be configured either with a .zuliprc file or with environment variables
in the host machine.
This new page in the user docs explains how to set the bindings up using
both techniques, and is a good reference on the setup required by Zulip
bots.
2018-05-13 15:09:23 -07:00
Yago González
c6eee1c9da
docs: Rename rest_error_handling with dashes.
2018-05-13 15:02:48 -07:00
Yago González
7ae51a4ec6
docs: Update API key-related screenshots.
2018-05-13 15:02:48 -07:00
Eeshan Garg
34d1b0ebf1
webhooks: Add helper to extract and validate HTTP event headers.
...
This is a part of our efforts to close #6213 .
2018-05-05 15:48:37 -07:00
Eeshan Garg
7e379bbb76
writing-bots: Recommend using Python 3 to run tools/provision.
2018-05-03 10:11:49 -07:00
Tim Abbott
6cca334271
api: Document the /register API with a lot more detail.
2018-04-27 17:01:41 -07:00
Tim Abbott
9fc1458924
api: Improve documentation for real-time-events API.
2018-04-27 16:36:54 -07:00
Tim Abbott
be3804f505
api: Fix incorrectly documented event types.
...
It's actually "subscription" and "message" (neither is plural).
While we're at it, we should also remove the "pointer" event type,
since that's of generally low interest.
2018-04-27 15:16:24 -07:00
Eeshan Garg
7d14ce2cb6
pypi packaging: Upgrade to release 0.4.6.
...
As a part of the upgrade, we had to update our API tests in
zerver/lib/api_test_helpers.
2018-04-27 14:50:25 -07:00
Preston Hansen
e168f9938c
tests: Refactor use of test and webhook data fixtures.
2018-04-19 21:50:29 -07:00
Preston Hansen
76d6c71595
tests: Move zerver/fixtures to zerver/tests/fixtures for clarity.
...
Fixes #9153 .
2018-04-19 21:50:17 -07:00
Tim Abbott
c224114287
/api: Clean up the API documentation homepage.
2018-04-16 15:54:39 -07:00
Tim Abbott
d09071bbc9
/api: Add an overview doc for the REST API.
2018-04-16 15:51:13 -07:00
Tim Abbott
89704df167
/api: Move list of REST endpoints to a template.
2018-04-16 15:50:53 -07:00