mirror of https://github.com/zulip/zulip.git
docs: Make update-message-flags use curl example system.
This commit is contained in:
parent
19ee518f2e
commit
f0b099dbc0
|
@ -44,13 +44,7 @@ zulip(config).then((client) => {
|
||||||
|
|
||||||
{tab|curl}
|
{tab|curl}
|
||||||
|
|
||||||
``` curl
|
{generate_code_example(curl)|/messages/flags:post|example}
|
||||||
curl -X POST {{ api_url }}/v1/messages/flags \
|
|
||||||
-u BOT_EMAIL_ADDRESS:BOT_API_KEY \
|
|
||||||
-d "messages=[4,8,15]" \
|
|
||||||
-d "op=add" \
|
|
||||||
-d "flag=starred"
|
|
||||||
```
|
|
||||||
|
|
||||||
{end_tabs}
|
{end_tabs}
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ exclude_list = [
|
||||||
'update-message.md',
|
'update-message.md',
|
||||||
'delete-message.md',
|
'delete-message.md',
|
||||||
'get-message-history.md',
|
'get-message-history.md',
|
||||||
|
'update-message-flags.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