Files
zulip/templates/zerver/api/update-message.md
Suyash Vardhan Mathur 0c4330f926 openapi: Automatically add python tab whenever required.
As a part of goal of moving towards a common template,
the hardcoded python tabs need to be removed to ensure
that endpoints which don't have python examples can be
covered by the common template as well.

This commit also modifies the markdown extension for python
examples to render empty string in case the examples don't
exist, which would allow it to be called whether the endpoint
has python examples or not.
2021-06-24 10:38:44 -07:00

762 B

{generate_api_title(/messages/{message_id}:patch)}

{generate_api_description(/messages/{message_id}:patch)}

Usage examples

{start_tabs}

{generate_code_example(python)|/messages/{message_id}:patch|example}

{generate_code_example(javascript)|/messages/{message_id}:patch|example}

{tab|curl}

{generate_code_example(curl)|/messages/{message_id}:patch|example}

{end_tabs}

Parameters

{generate_api_arguments_table|zulip.yaml|/messages/{message_id}:patch}

{generate_parameter_description(/messages/{message_id}:patch)}

Response

{generate_response_description(/messages/{message_id}:patch)}

Example response

{generate_code_example|/messages/{message_id}:patch|fixture(200)}

{generate_code_example|/messages/{message_id}:patch|fixture(400)}