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)
|
||||
* Update `r0::account::change_password` from r0.3.0 to r0.6.0
|
||||
* 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 serde::{Deserialize, Serialize};
|
||||
|
||||
pub mod bulk_delete_devices;
|
||||
pub mod delete_device;
|
||||
pub mod delete_devices;
|
||||
pub mod get_device;
|
||||
pub mod get_devices;
|
||||
pub mod set_device;
|
||||
pub mod update_device;
|
||||
|
||||
/// Information about a registered device.
|
||||
#[derive(Clone, Debug, Deserialize, Hash, PartialEq, Serialize)]
|
||||
|
@ -9,7 +9,7 @@ ruma_api! {
|
||||
description: "Delete specified devices.",
|
||||
method: POST,
|
||||
path: "/_matrix/client/r0/delete_devices",
|
||||
name: "bulk_delete_devices",
|
||||
name: "delete_devices",
|
||||
rate_limited: false,
|
||||
requires_authentication: true,
|
||||
}
|
||||
@ -23,5 +23,5 @@ ruma_api! {
|
||||
auth: Option<AuthenticationData>,
|
||||
}
|
||||
|
||||
response { }
|
||||
response {}
|
||||
}
|
@ -16,6 +16,6 @@ ruma_api! {
|
||||
request {}
|
||||
|
||||
response {
|
||||
devices: Vec<Device>
|
||||
devices: Vec<Device>,
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ ruma_api! {
|
||||
metadata {
|
||||
description: "Update metadata for a device.",
|
||||
method: PUT,
|
||||
name: "set_device",
|
||||
name: "update_device",
|
||||
path: "/_matrix/client/r0/devices/:device_id",
|
||||
rate_limited: false,
|
||||
requires_authentication: true,
|
Loading…
x
Reference in New Issue
Block a user