docs: Make mark-as-read-bulk use curl example system.

This commit is contained in:
Vishnu Ks
2019-10-09 10:32:42 +00:00
committed by Tim Abbott
parent f0b099dbc0
commit 3f9835ed07
2 changed files with 4 additions and 15 deletions

View File

@@ -13,10 +13,7 @@ Marks all of the current user's unread messages as read.
{tab|curl}
``` curl
curl -X POST {{ api_url }}/v1/mark_all_as_read \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY
```
{generate_code_example(curl)|/mark_all_as_read:post|example}
{end_tabs}
@@ -48,11 +45,7 @@ Mark all the unread messages in a stream as read.
{tab|curl}
``` curl
curl -X POST {{ api_url }}/v1/mark_stream_as_read \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY \
-d "stream_id=42"
```
{generate_code_example(curl)|/mark_stream_as_read:post|example}
{end_tabs}
@@ -84,12 +77,7 @@ Mark all the unread messages in a topic as read.
{tab|curl}
``` curl
curl -X POST {{ api_url }}/v1/mark_topic_as_read \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY \
-d "stream_id=42" \
-d "topic_name=new coffee machine"
```
{generate_code_example(curl)|/mark_topic_as_read:post|example}
{end_tabs}

View File

@@ -25,6 +25,7 @@ exclude_list = [
'delete-message.md',
'get-message-history.md',
'update-message-flags.md',
'mark-as-read-bulk.md',
]
def test_generated_curl_examples_for_success(client: Client) -> None: