mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
Now, the descriptions and all subschemas are directly returned just by `generate_code_example`, and so, these individual subschemas and descriptions can be removed from the templates. All API endpoints docs are exactly the same after the change, except few where missing 400 responses got added due to the modification
626 B
626 B
{generate_api_title(/realm/playgrounds:post)}
{generate_api_description(/realm/playgrounds:post)}
Usage examples
{start_tabs} {tab|python}
{generate_code_example(python)|/realm/playgrounds:post|example}
{tab|curl}
{generate_code_example(curl)|/realm/playgrounds:post|example}
{end_tabs}
Parameters
{generate_api_arguments_table|zulip.yaml|/realm/playgrounds:post}
Response
Return values
{generate_return_values_table|zulip.yaml|/realm/playgrounds:post}
Example response
{generate_code_example|/realm/playgrounds:post|fixture(200)}
{generate_code_example|/realm/playgrounds:post|fixture(400)}