feat(openapi): add new entry used by drag & drop
This commit is contained in:
@@ -852,6 +852,21 @@ pub async fn move_folders_batch(
|
||||
}
|
||||
|
||||
// Hander as a workarround for drag & drop (does not support POST requests)
|
||||
#[utoipa::path(
|
||||
get,
|
||||
path = "/api/batch/download",
|
||||
params(
|
||||
("file_ids" = Option<String>, Query, description = "Comma-separated file IDs"),
|
||||
("folder_ids" = Option<String>, Query, description = "Comma-separated folder IDs"),
|
||||
),
|
||||
responses(
|
||||
(status = 200, description = "ZIP archive stream"),
|
||||
(status = 400, description = "Bad request"),
|
||||
(status = 401, description = "Unauthorized"),
|
||||
(status = 500, description = "ZIP creation failed")
|
||||
),
|
||||
tag = "batch"
|
||||
)]
|
||||
pub async fn download_batch_querystring(
|
||||
State(state): State<BatchHandlerState>,
|
||||
auth_user: AuthUser,
|
||||
|
||||
@@ -131,7 +131,8 @@ use crate::interfaces::api::handlers::file_handler::MoveFilePayload;
|
||||
handlers::batch_handler::get_folders_batch,
|
||||
handlers::batch_handler::move_folders_batch,
|
||||
handlers::batch_handler::trash_batch,
|
||||
handlers::batch_handler::download_batch,
|
||||
handlers::batch_handler::download_batch_post,
|
||||
handlers::batch_handler::download_batch_querystring,
|
||||
// Music/playlist handlers (free functions)
|
||||
handlers::music_handler::create_playlist,
|
||||
handlers::music_handler::list_playlists,
|
||||
|
||||
Reference in New Issue
Block a user