mirror of https://github.com/zulip/zulip.git
docs: Make delete-message use curl example system.
This commit is contained in:
parent
0dccebbe39
commit
ed2e89f167
|
@ -19,10 +19,7 @@ the Zulip Help Center.
|
||||||
|
|
||||||
{tab|curl}
|
{tab|curl}
|
||||||
|
|
||||||
``` curl
|
{generate_code_example(curl)|/messages/{message_id}:delete|example}
|
||||||
curl -X DELETE {{ api_url }}/v1/messages/{message_id} \
|
|
||||||
-u BOT_EMAIL_ADDRESS:BOT_API_KEY \
|
|
||||||
```
|
|
||||||
|
|
||||||
{end_tabs}
|
{end_tabs}
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ exclude_list = [
|
||||||
# state of the DB. This results in the curl request to fail.
|
# state of the DB. This results in the curl request to fail.
|
||||||
'get-raw-message.md',
|
'get-raw-message.md',
|
||||||
'update-message.md',
|
'update-message.md',
|
||||||
|
'delete-message.md',
|
||||||
]
|
]
|
||||||
|
|
||||||
def test_generated_curl_examples_for_success(client: Client) -> None:
|
def test_generated_curl_examples_for_success(client: Client) -> None:
|
||||||
|
|
Loading…
Reference in New Issue