diff --git a/src/modes/server/api/item.rs b/src/modes/server/api/item.rs index 61a5845..14968ae 100644 --- a/src/modes/server/api/item.rs +++ b/src/modes/server/api/item.rs @@ -155,7 +155,8 @@ pub async fn handle_post_item( ("tags" = Option, Query, description = "Tags to filter latest item"), ("allow_binary" = Option, Query, description = "Allow binary content"), ("offset" = Option, Query, description = "Byte offset to start reading"), - ("length" = Option, Query, description = "Number of bytes to read") + ("length" = Option, Query, description = "Number of bytes to read"), + ("stream" = Option, Query, description = "Stream response (true) or build in memory (false)") ), security( ("bearerAuth" = []) @@ -217,7 +218,8 @@ pub async fn handle_get_item_latest_content( ("item_id" = i64, Path, description = "Item ID"), ("allow_binary" = Option, Query, description = "Allow binary content"), ("offset" = Option, Query, description = "Byte offset to start reading"), - ("length" = Option, Query, description = "Number of bytes to read") + ("length" = Option, Query, description = "Number of bytes to read"), + ("stream" = Option, Query, description = "Stream response (true) or build in memory (false)") ), security( ("bearerAuth" = []) diff --git a/src/modes/server/api/mod.rs b/src/modes/server/api/mod.rs index ad6fb83..72e5d52 100644 --- a/src/modes/server/api/mod.rs +++ b/src/modes/server/api/mod.rs @@ -40,6 +40,8 @@ use utoipa_swagger_ui::SwaggerUi; crate::modes::server::common::MetadataResponse, crate::modes::server::common::StatusInfoResponse, crate::common::status::StatusInfo, + crate::modes::server::common::ItemQuery, + crate::modes::server::common::ItemContentQuery, ) ), tags(