ruwuma/crates/ruma-api/tests/optional_headers.rs
2022-02-13 11:44:32 +01:00

23 lines
451 B
Rust

use ruma_api::ruma_api;
ruma_api! {
metadata: {
description: "Does something.",
method: GET,
name: "no_fields",
unstable_path: "/_matrix/my/endpoint",
rate_limited: false,
authentication: None,
}
request: {
#[ruma_api(header = LOCATION)]
pub location: Option<String>,
}
response: {
#[ruma_api(header = LOCATION)]
pub stuff: Option<String>,
}
}