Improve consistency in declared field order of media endpoints
This commit is contained in:
parent
f4fc20921a
commit
3e5cea289c
@ -13,6 +13,10 @@ ruma_api! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
request: {
|
request: {
|
||||||
|
/// The file contents to upload.
|
||||||
|
#[ruma_api(raw_body)]
|
||||||
|
pub file: Vec<u8>,
|
||||||
|
|
||||||
/// The name of the file being uploaded.
|
/// The name of the file being uploaded.
|
||||||
#[ruma_api(query)]
|
#[ruma_api(query)]
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
@ -21,10 +25,6 @@ ruma_api! {
|
|||||||
/// The content type of the file being uploaded.
|
/// The content type of the file being uploaded.
|
||||||
#[ruma_api(header = CONTENT_TYPE)]
|
#[ruma_api(header = CONTENT_TYPE)]
|
||||||
pub content_type: Option<&'a str>,
|
pub content_type: Option<&'a str>,
|
||||||
|
|
||||||
/// The file contents to upload.
|
|
||||||
#[ruma_api(raw_body)]
|
|
||||||
pub file: Vec<u8>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
response: {
|
response: {
|
||||||
|
@ -59,13 +59,13 @@ ruma_api! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
response: {
|
response: {
|
||||||
/// The content type of the thumbnail.
|
|
||||||
#[ruma_api(header = CONTENT_TYPE)]
|
|
||||||
pub content_type: Option<String>,
|
|
||||||
|
|
||||||
/// A thumbnail of the requested content.
|
/// A thumbnail of the requested content.
|
||||||
#[ruma_api(raw_body)]
|
#[ruma_api(raw_body)]
|
||||||
pub file: Vec<u8>,
|
pub file: Vec<u8>,
|
||||||
|
|
||||||
|
/// The content type of the thumbnail.
|
||||||
|
#[ruma_api(header = CONTENT_TYPE)]
|
||||||
|
pub content_type: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
error: crate::Error
|
error: crate::Error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user