mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
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.
802 B
802 B
{generate_api_title(/realm/profile_fields:get)}
{generate_api_description(/realm/profile_fields:get)}
Usage examples
{start_tabs}
{generate_code_example(python)|/realm/profile_fields:get|example}
{generate_code_example(javascript)|/realm/profile_fields:get|example}
{tab|curl}
{generate_code_example(curl)|/realm/profile_fields:get|example}
{end_tabs}
Parameters
{generate_api_arguments_table|zulip.yaml|/realm/profile_fields:get}
{generate_parameter_description(/realm/profile_fields:get)}
Response
{generate_return_values_table|zulip.yaml|/realm/profile_fields:get}
{generate_response_description(/realm/profile_fields:get)}
Example response
{generate_code_example|/realm/profile_fields:get|fixture(200)}
{generate_code_example|/realm/profile_fields:get|fixture(400)}