zulip/templates/zerver/api/add-code-playground.md

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

{generate_code_example(javascript)|/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}

{generate_parameter_description(/realm/playgrounds:post)}

Response

{generate_return_values_table|zulip.yaml|/realm/playgrounds:post}

{generate_response_description(/realm/playgrounds:post)}

Example response

{generate_code_example|/realm/playgrounds:post|fixture(200)}

{generate_code_example|/realm/playgrounds:post|fixture(400)}