Skip to content
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
@PaarthShah

Description

@PaarthShah

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Admin-APIT-TaskRefactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.good first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions