Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Fix HTTP methods for /users endpoint.

ecxtacy61b9cff89b7f
diff --git a/docs/tutorials/life-of-a-request.md b/docs/tutorials/life-of-a-request.md
index fecc8a7687a..2cca4609474 100644
--- a/docs/tutorials/life-of-a-request.md
+++ b/docs/tutorials/life-of-a-request.md
@@ -132,14 +132,14 @@ The OPTIONS method will yield the allowed methods.
This request:
`OPTIONS https://chat.zulip.org/api/v1/users`
yields a response with this HTTP header:
-`Allow: PUT, GET`
+`Allow: GET, HEAD, POST`
We can see this reflected in [zproject/urls.py](https://github.com/zulip/zulip/blob/main/zproject/urls.py):
```python
rest_path('users',
GET=get_members_backend,
- PUT=create_user_backend),
+ POST=create_user_backend),
```
In this way, the API is partially self-documenting.