Make style and naming convention for devices endpoint consistent.
This commit is contained in:
parent
f58f4c073b
commit
d025c3e26e
@ -19,4 +19,4 @@ Improvements:
|
|||||||
* Add `contains_url` to `r0::filter::RoomEventFilter` (introduced upstream in r0.3.0)
|
* Add `contains_url` to `r0::filter::RoomEventFilter` (introduced upstream in r0.3.0)
|
||||||
* Update `r0::account::change_password` from r0.3.0 to r0.6.0
|
* Update `r0::account::change_password` from r0.3.0 to r0.6.0
|
||||||
* Add optional `auth` field
|
* Add optional `auth` field
|
||||||
* Add `r0::device` endpoint
|
* Add `r0::device` endpoints
|
||||||
|
@ -4,11 +4,11 @@ use js_int::UInt;
|
|||||||
use ruma_identifiers::DeviceId;
|
use ruma_identifiers::DeviceId;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
pub mod bulk_delete_devices;
|
|
||||||
pub mod delete_device;
|
pub mod delete_device;
|
||||||
|
pub mod delete_devices;
|
||||||
pub mod get_device;
|
pub mod get_device;
|
||||||
pub mod get_devices;
|
pub mod get_devices;
|
||||||
pub mod set_device;
|
pub mod update_device;
|
||||||
|
|
||||||
/// Information about a registered device.
|
/// Information about a registered device.
|
||||||
#[derive(Clone, Debug, Deserialize, Hash, PartialEq, Serialize)]
|
#[derive(Clone, Debug, Deserialize, Hash, PartialEq, Serialize)]
|
||||||
|
@ -9,7 +9,7 @@ ruma_api! {
|
|||||||
description: "Delete specified devices.",
|
description: "Delete specified devices.",
|
||||||
method: POST,
|
method: POST,
|
||||||
path: "/_matrix/client/r0/delete_devices",
|
path: "/_matrix/client/r0/delete_devices",
|
||||||
name: "bulk_delete_devices",
|
name: "delete_devices",
|
||||||
rate_limited: false,
|
rate_limited: false,
|
||||||
requires_authentication: true,
|
requires_authentication: true,
|
||||||
}
|
}
|
||||||
@ -23,5 +23,5 @@ ruma_api! {
|
|||||||
auth: Option<AuthenticationData>,
|
auth: Option<AuthenticationData>,
|
||||||
}
|
}
|
||||||
|
|
||||||
response { }
|
response {}
|
||||||
}
|
}
|
@ -16,6 +16,6 @@ ruma_api! {
|
|||||||
request {}
|
request {}
|
||||||
|
|
||||||
response {
|
response {
|
||||||
devices: Vec<Device>
|
devices: Vec<Device>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ ruma_api! {
|
|||||||
metadata {
|
metadata {
|
||||||
description: "Update metadata for a device.",
|
description: "Update metadata for a device.",
|
||||||
method: PUT,
|
method: PUT,
|
||||||
name: "set_device",
|
name: "update_device",
|
||||||
path: "/_matrix/client/r0/devices/:device_id",
|
path: "/_matrix/client/r0/devices/:device_id",
|
||||||
rate_limited: false,
|
rate_limited: false,
|
||||||
requires_authentication: true,
|
requires_authentication: true,
|
Loading…
x
Reference in New Issue
Block a user