From ad5af4d571ca5c918b9c3c8fbb54d091ff9e9eab Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Thu, 6 May 2021 11:05:52 -0400 Subject: [PATCH] Use only GET endpoints. --- proposals/2946-spaces-summary.md | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/proposals/2946-spaces-summary.md b/proposals/2946-spaces-summary.md index c803f5571..cb1840d51 100644 --- a/proposals/2946-spaces-summary.md +++ b/proposals/2946-spaces-summary.md @@ -40,17 +40,6 @@ This endpoint requires authentication and is not subject to rate-limiting. Example request: -```jsonc -POST /_matrix/client/r0/rooms/{roomID}/spaces - -{ - "max_rooms_per_space": 5, - "suggested_only": true -} -``` - -or: - ```text GET /_matrix/client/r0/rooms/{roomID}/spaces? max_rooms_per_space=5& @@ -96,8 +85,7 @@ Request params: * **`suggested_only`**: Optional. If `true`, return only child events and rooms where the `m.space.child` event has `suggested: true`. Defaults to `false`. - For the POST request, must be a boolean. For GET, must be either `true` or `false`, - case-sensitive. + Must be either `true` or `false`, case-sensitive. * **`max_rooms_per_space`**: Optional: a client-defined limit to the maximum number of children to return per space. Doesn't apply to the root space (ie, the `room_id` in the request). @@ -172,7 +160,7 @@ Much the same interface as the Client-Server API. Example request: ```jsonc -POST /_matrix/federation/v1/spaces/{roomID} +GET /_matrix/federation/v1/spaces/{roomID} { "exclude_rooms": ["!a:b", "!b:c"], "max_rooms_per_space": 5,