//! # Files
//!
//! All file references returned in all API endpoints return the file reference without the
//! data stream. To get the data stream you need to call the file API endpoints. The reason
//! for that is maintain a high performance and only return data streams on request.
//!
use crate::{File, Request, RequestBuilder, Uuid, client::DataStream};
pub fn get_file_content_stream(id: Uuid) -> Request<DataStream> {
RequestBuilder::new(http::Method::GET, "/v1/files/file/")
.path_param(id)
.build()
}
pub fn get_a_file_metadata(id: Uuid, includedata: Option<bool>) -> Request<File> {
RequestBuilder::new(http::Method::GET, "/v1/files/fileobject/")
.path_param(id)
.query_param_opt("includedata", includedata)
.build()
}