1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
use ruma_common::api::ruma_api;
ruma_api! {
metadata: {
description: "This will fail.",
method: GET,
name: "invalid_path",
unstable_path: "µ/°/§/€",
rate_limited: false,
authentication: None,
}
request: {
#[ruma_api(query_map)]
pub fields: Vec<(String, String)>,
}
response: {}
}
ruma_api! {
metadata: {
description: "This will fail.",
method: GET,
name: "invalid_path",
unstable_path: "path/to/invalid space/endpoint",
rate_limited: false,
authentication: None,
}
request: {
#[ruma_api(query_map)]
pub fields: Vec<(String, String)>,
}
response: {}
}
fn main() {}
|