ruwuma/tests/ruma_api_macros.rs
Jimmy Cuadra 69522626ff WIP
2017-05-12 17:35:31 -07:00

28 lines
730 B
Rust

#![feature(proc_macro)]
extern crate hyper;
extern crate ruma_api;
extern crate ruma_api_macros;
pub mod get_supported_versions {
use ruma_api_macros::ruma_api;
ruma_api! {
const METADATA: Metadata = Metadata {
description: "Get the versions of the client-server API supported by this homeserver.",
method: Method::Get,
name: "api_versions",
path: "/_matrix/client/versions",
rate_limited: false,
requires_authentication: true,
};
struct Request;
struct Response {
/// A list of Matrix client API protocol versions supported by the homeserver.
pub versions: Vec<String>,
}
}
}