24 lines
690 B
Rust
24 lines
690 B
Rust
//! [GET /_matrix/app/v1/rooms/{roomAlias}](https://matrix.org/docs/spec/application_service/r0.1.2#get-matrix-app-v1-rooms-roomalias)
|
|
|
|
use ruma_api::ruma_api;
|
|
use ruma_identifiers::RoomAliasId;
|
|
|
|
ruma_api! {
|
|
metadata: {
|
|
description: "This endpoint is invoked by the homeserver on an application service to query the existence of a given room alias.",
|
|
method: GET,
|
|
name: "query_room_alias",
|
|
path: "/_matrix/app/v1/rooms/:room_alias",
|
|
rate_limited: false,
|
|
requires_authentication: true,
|
|
}
|
|
|
|
request: {
|
|
/// The room alias being queried.
|
|
#[ruma_api(path)]
|
|
pub room_alias: RoomAliasId,
|
|
}
|
|
|
|
response: {}
|
|
}
|