This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
The Delete Room API should use the http DELETE method, not POST #9032
Closed
Description
With roots in this suggestion by @richvdh, the current Delete Room API uses POST /_synapse/admin/v1/rooms/<room_id>/delete
instead of DELETE /_synapse/admin/v1/rooms/<room_id>
, on the logic that DELETE should not have a request body.
This logic is incorrect, as better detailed by this stackoverflow answer, but in short, the spec supports it, and the matrix APIs already have other instances of DELETE
being used with a request body.
https://matrix.org/docs/spec/client_server/latest#delete-matrix-client-r0-devices-deviceid