federation-api: Fix misssing path parameter in get_devices

This commit is contained in:
Jonas Platte 2020-08-18 22:26:34 +02:00
parent c6b4fe1e50
commit c798ef1fad
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -1,4 +1,4 @@
//! [GET /_matrix/federation/v1/user/devices/](https://matrix.org/docs/spec/server_server/r0.1.4#get-matrix-federation-v1-user-devices-userid) //! [GET /_matrix/federation/v1/user/devices/{userId}](https://matrix.org/docs/spec/server_server/r0.1.4#get-matrix-federation-v1-user-devices-userid)
use js_int::UInt; use js_int::UInt;
use ruma_api::ruma_api; use ruma_api::ruma_api;
@ -11,14 +11,14 @@ ruma_api! {
description: "Gets information on all of the user's devices.", description: "Gets information on all of the user's devices.",
name: "get_devices", name: "get_devices",
method: GET, method: GET,
path: "/_matrix/federation/v1/user/devices", path: "/_matrix/federation/v1/user/devices/:user_id",
rate_limited: false, rate_limited: false,
requires_authentication: true, requires_authentication: true,
} }
request: { request: {
/// The user ID to retrieve devices for. Must be a user local to the receiving homeserver. /// The user ID to retrieve devices for. Must be a user local to the receiving homeserver.
#[ruma_api(query)] #[ruma_api(path)]
pub user_id: &'a UserId, pub user_id: &'a UserId,
} }