Make style and naming convention for devices endpoint consistent.

This commit is contained in:
Isaiah Inuwa 2019-12-24 10:12:45 -05:00
parent f58f4c073b
commit d025c3e26e
5 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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)]

View File

@ -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 {}
} }

View File

@ -16,6 +16,6 @@ ruma_api! {
request {} request {}
response { response {
devices: Vec<Device> devices: Vec<Device>,
} }
} }

View File

@ -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,