zulip/zerver
Lauryn Menard 2a1ceb58d9 api-docs: Return 404 for direct `/api-doc-template` call.
We use `templates/zerver/api/api-doc-template.md` as a base template
for the documented API endpoints in `zerver/openapi/zulip.yaml`.

Previously, if this template was called as an endpoint, then it
would fail an assertion check and send server error. Now we check
for specifically for that potential path and return a 404 error
response for no existing article.

Fixes #21876.
2022-11-08 08:10:15 -08:00
..
actions ruff: Fix C416 Unnecessary `set` comprehension (rewrite using `set()`). 2022-11-03 12:10:15 -07:00
data_import slack: Parse emoji skin tone variants. 2022-11-07 14:25:49 -08:00
integration_fixtures/nagios
lib decorator: Put back check for dev env in `ignore_unhashable_lru_cache`. 2022-11-07 12:17:59 -08:00
management delete_realm: Use Message.realm column for message count. 2022-10-31 09:57:42 -07:00
migrations migrations: Add migration to migrate pronouns custom profile fields. 2022-11-04 14:31:18 -07:00
openapi api-docs: Remove unused description in get-subscription-status. 2022-11-07 12:31:55 -08:00
tests api-docs: Return 404 for direct `/api-doc-template` call. 2022-11-08 08:10:15 -08:00
tornado register: Handle "Pronouns" type fields for older mobile clients. 2022-11-04 14:31:18 -07:00
views api-docs: Return 404 for direct `/api-doc-template` call. 2022-11-08 08:10:15 -08:00
webhooks ruff: Fix C414 Unnecessary `list` call within `sorted()`. 2022-11-03 12:10:15 -07:00
worker python: Use format string for logging str(obj). 2022-10-10 08:32:29 -07:00
__init__.py
apps.py sentry: Initialize sentry in AppConfig ready hook. 2022-09-26 12:42:36 -07:00
context_processors.py templates: Rename `OPEN_GRAPH` variables to `PAGE` or `PAGE_METADATA`. 2022-09-06 14:57:06 -07:00
decorator.py python: Clean up getattr, setattr, delattr calls with literal names. 2022-10-10 08:40:28 -07:00
filters.py
forms.py forms: Fix another 500 error on realm creation with invalid email. 2022-09-19 14:12:32 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py scim: Upgrade django-scim2; remove request.user monkey patching. 2022-11-05 15:13:50 -07:00
models.py ruff: Fix C413 Unnecessary `list` call around `sorted()`. 2022-11-03 12:10:15 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00