Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
incoming-webhooks-walkthrough: Improve some section titles.
Niloth P7e660c43d0b8
diff --git a/docs/webhooks/incoming-webhooks-walkthrough.md b/docs/webhooks/incoming-webhooks-walkthrough.mdindex 7a382397bac..4065deb8b4a 100644--- a/docs/webhooks/incoming-webhooks-walkthrough.md+++ b/docs/webhooks/incoming-webhooks-walkthrough.md@@ -48,7 +48,7 @@ it requires only one fixture,}```-### HTTP Headers+### Custom HTTP headersSome third-party outgoing webhook APIs, such as GitHub's, don't encodeall of the information about an event in the HTTP request body. Instead,@@ -185,7 +185,8 @@ success message via `json_success(request)`.## Step 3: Create an API endpoint for the webhookIn order for an incoming webhook integration to be externally available,-it must be mapped to a URL. This is done in `zerver/lib/integrations.py`.+it must be mapped to a URL. This "registration" is done in+`zerver/lib/integrations.py`.Look for the lines beginning with:@@ -215,7 +216,7 @@ display name for the integration in the documentation. [Step 6: Createdocumentation](#step-6-document-the-integration) has more details aboutcreating end-user documentation.-### Webhooks requiring custom configuration+### Registering webhooks requiring custom configurationIn cases where an incoming webhook integration supports optional URLparameters, one can use the `url_options` feature. It's a field in the@@ -609,7 +610,7 @@ construct the webhook URL yourself. (In most cases, it is.)If you had used `check_webhook`, it would have called`send_webhook_payload`, which checks the result with `assert_json_success`.-### Custom query parameters+### Writing tests for custom URL query parametersCustom arguments passed in URL query parameters work as expected in thewebhook code, but require special handling in tests.