docs: Make update-message-flags use curl example system.

This commit is contained in:
Vishnu Ks 2019-10-09 10:30:12 +00:00 committed by Tim Abbott
parent 19ee518f2e
commit f0b099dbc0
2 changed files with 2 additions and 7 deletions

View File

@ -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}

View File

@ -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: