Fix rooms/{roomId}/aliases and rooms/{roomId}/report endpoint metadata fields

This commit is contained in:
Devin Ragotzy 2020-08-14 09:43:21 -04:00 committed by GitHub
parent f420082b39
commit 456505081b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -1,15 +1,15 @@
//! [PUT /_matrix/client/r0/directory/room/{roomAlias}](https://matrix.org/docs/spec/client_server/r0.6.0#put-matrix-client-r0-directory-room-roomalias)
//! [GET /_matrix/client/r0/rooms/{roomId}/aliases](https://matrix.org/docs/spec/client_server/r0.6.1#get-matrix-client-r0-rooms-roomid-aliases)
use ruma_api::ruma_api;
use ruma_identifiers::{RoomAliasId, RoomId};
ruma_api! {
metadata: {
description: "Get a list of local aliases on a given room.",
method: PUT,
name: "create_alias",
path: "/_matrix/client/r0/directory/room/:room_id",
rate_limited: false,
description: "Get a list of aliases maintained by the local server for the given room.",
method: GET,
name: "aliases",
path: "/_matrix/client/r0/rooms/:room_id/aliases",
rate_limited: true,
requires_authentication: true,
}

View File

@ -9,7 +9,7 @@ ruma_api! {
description: "Report content as inappropriate.",
method: POST,
name: "report_content",
path: "/rooms/:room_id/report/:event_id",
path: "/_matrix/client/r0/rooms/:room_id/report/:event_id",
rate_limited: false,
requires_authentication: true,
}