Apply suggestions from code review

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
reivilibre 2024-06-07 12:04:24 +01:00 committed by GitHub
parent b242d4b344
commit 367d762462
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,12 +29,12 @@ JSON object. Clients should supply a `Content-Type` header of
The exceptions are:
- [`POST /_matrix/media/v3/upload`](#post_matrixmediav3upload),
which takes any type of request body depending on what type of media is to be uploaded.
- [`PUT /_matrix/media/v3/upload/{serverName}/{mediaId}`](#put_matrixmediav3uploadservernamemediaid),
which takes any type of request body depending on what type of media is to be uploaded.
- [`POST /_matrix/client/v3/logout`](#post_matrixclientv3logout),
which does not take any request body.
- [`POST /_matrix/media/v3/upload`](#post_matrixmediav3upload) and
[`PUT /_matrix/media/v3/upload/{serverName}/{mediaId}`](#put_matrixmediav3uploadservernamemediaid),
both of which take the uploaded media as the request body.
- [`POST /_matrix/client/v3/logout`](#post_matrixclientv3logout) and
[`POST /_matrix/client/v3/logout/all`](#post_matrixclientv3logoutall),
which take an empty request body.
Similarly, all endpoints require the server to return a JSON object,
with the exception of 200 responses to