ruwuma/src/unversioned/get_supported_versions.rs
2019-08-03 19:43:09 +02:00

22 lines
597 B
Rust

//! [GET /_matrix/client/versions](https://matrix.org/docs/spec/client_server/r0.4.0.html#get-matrix-client-versions)
use ruma_api::ruma_api;
ruma_api! {
metadata {
description: "Get the versions of the client-server API supported by this homeserver.",
method: GET,
name: "api_versions",
path: "/_matrix/client/versions",
rate_limited: false,
requires_authentication: false,
}
request {}
response {
/// A list of Matrix client API protocol versions supported by the homeserver.
pub versions: Vec<String>,
}
}