mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
docs: Update API docs usage example.
This docs on writing API docs usage example hadn't been updated to use generate_code_example(curl) after we introduced that feature.
This commit is contained in:
@@ -76,12 +76,16 @@ one writes a Markdown file block that looks something like this:
|
||||
```
|
||||
{start_tabs}
|
||||
{tab|python}
|
||||
|
||||
{generate_code_example(python)|/messages/render:post|example}
|
||||
|
||||
{tab|js}
|
||||
...
|
||||
|
||||
{tab|curl}
|
||||
curl -X POST {{ api_url }}/v1/messages/render \
|
||||
...
|
||||
{tab|javascript}
|
||||
...
|
||||
|
||||
{generate_code_example(curl)|/messages/render:post|example}
|
||||
|
||||
{end_tabs}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user