Add unstable_features to version endpoint
This commit is contained in:
parent
9665abbaf2
commit
7d677f690e
@ -7,6 +7,7 @@ Improvements:
|
||||
* Add `r0::client_exchange::send_event_to_device` (introduced in r0.3.0)
|
||||
* Add endpoints to retrieve account_data (introduced in r0.5.0)
|
||||
* Add media endpoints: `r0::media::{get_media_config, get_media_preview, get_content_as_filename}`
|
||||
* Add `unstable_features` to `unversioned::get_supported_versions` (introduced in r0.5.0)
|
||||
|
||||
Breaking changes:
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
//! [GET /_matrix/client/versions](https://matrix.org/docs/spec/client_server/r0.4.0.html#get-matrix-client-versions)
|
||||
//! [GET /_matrix/client/versions](https://matrix.org/docs/spec/client_server/r0.6.0.html#get-matrix-client-versions)
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
use ruma_api::ruma_api;
|
||||
|
||||
@ -17,5 +19,8 @@ ruma_api! {
|
||||
response {
|
||||
/// A list of Matrix client API protocol versions supported by the homeserver.
|
||||
pub versions: Vec<String>,
|
||||
/// Experimental features supported by the server.
|
||||
#[serde(default, skip_serializing_if = "HashMap::is_empty")]
|
||||
pub unstable_features: HashMap<String, bool>
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user