zulip/zerver/openapi
Suyash Vardhan Mathur 274f73d117 apidocs: Automatically add javascript example tabs.
The javascript tab in .md templates can be
generated along with the line that adds js
example.

Further, as a part of the effort of moving
towards a single template, the markdown extension
for javascrit examples is modified to return empty
string if javascript example doesn't exist for that
endpoint. This would make it possible to cover more
endpoints with a single template.

The js example tabs are now automatically generated
during generation of javascript code, and so need to
be removed. Also, the markdown function to render js
examples can be added in all templates, since it is
parses and returns an empty string if the examples
don't exist, and allows us to move towards a common
template.

The pages have been verified to be correct
by using diff between old and new pages' raw HTML.
2021-06-11 07:43:22 -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 apidocs: Automatically add javascript example tabs. 2021-06-11 07:43:22 -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