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
979 B
{generate_api_title(/users/me/subscriptions:get)}
{generate_api_description(/users/me/subscriptions:get)}
Usage examples
{start_tabs} {tab|python}
{generate_code_example(python)|/users/me/subscriptions:get|example}
{tab|js}
More examples and documentation can be found here.
{generate_code_example(javascript)|/users/me/subscriptions:get|example}
{tab|curl}
{generate_code_example(curl, include=[""])|/users/me/subscriptions:get|example}
You may pass the include_subscribers query parameter as follows:
{generate_code_example(curl)|/users/me/subscriptions:get|example}
{end_tabs}
Parameters
{generate_api_arguments_table|zulip.yaml|/users/me/subscriptions:get}
Response
Return values
{generate_return_values_table|zulip.yaml|/users/me/subscriptions:get}
Example response
{generate_code_example|/users/me/subscriptions:get|fixture(200)}
{generate_code_example|/users/me/subscriptions:get|fixture(400)}