zulip/zerver/openapi
Suyash Vardhan Mathur 6692250858 openapi: Enhance markdown extension for responses.
Currently, the descriptions for API responses were
hardcoded in the templates. However, they now exist
in YAML data as well, and so can be fetched from there.

Also, as a part of moving towards a common template, it is
beneficial to show return response description along with
the code example directly. Also, for the same reason, the
need for mentioning subschemas for the response has been
removed, and ALL responses for that response code should
be returned in the proper format.

This also includes returning empty string if that response
code doesn't exist. This allows us to directly mention both
200 and 400 responses in all templates, and they are parsed
automatically.

A followup is necessary to remove the descriptions in the template
as they are duplicated just by this commit
2021-06-09 12:43:12 -07:00
..
curl_param_value_generators.py openapi: Refactor hacky openAPI curl test. 2021-04-28 15:49:35 -07:00
javascript_examples.js eslint: Fix unicorn/no-new-array. 2021-01-25 14:53:19 -08:00
javascript_examples.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
markdown_extension.py openapi: Enhance markdown extension for responses. 2021-06-09 12:43:12 -07:00
openapi.py openapi: Enhance markdown extension for responses. 2021-06-09 12:43:12 -07:00
python_examples.py api: Fix encoding of strings in display settings endpoint. 2021-05-10 10:03:32 -07:00
test_curl_examples.py curl_examples: Add testing for template endpoints. 2021-06-04 09:43:24 -07:00
testing.yaml openapi: Add missing object types. 2020-08-12 16:11:29 -07:00
zulip.yaml openapi: Migrate response descriptions into schemas. 2021-06-09 12:43:12 -07:00