mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
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 |
||
|---|---|---|
| .. | ||
| data_import | ||
| integration_fixtures/nagios | ||
| lib | ||
| management | ||
| migrations | ||
| openapi | ||
| templatetags | ||
| tests | ||
| tornado | ||
| views | ||
| webhooks | ||
| worker | ||
| __init__.py | ||
| apps.py | ||
| context_processors.py | ||
| decorator.py | ||
| filters.py | ||
| forms.py | ||
| logging_handlers.py | ||
| middleware.py | ||
| models.py | ||
| signals.py | ||