From 8d466f6a259328918d5d6fc3314e53b04b536064 Mon Sep 17 00:00:00 2001 From: Rodriq <39289592+Rodriq@users.noreply.github.com> Date: Wed, 22 Jan 2020 21:00:10 +0100 Subject: [PATCH] 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. --- docs/documentation/api.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/documentation/api.md b/docs/documentation/api.md index ecfce0b32d..826074e952 100644 --- a/docs/documentation/api.md +++ b/docs/documentation/api.md @@ -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} ```