https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42404 --- Comment #2 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 200146 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200146&action=edit Bug 42404: Add REST API endpoint for batch cover image import This patch adds a REST API endpoint for batch importing cover images: POST /api/v1/cover_images/batch It accepts a zip file via multipart/form-data and enqueues a BatchImportCoverImages background job to process it. Query parameters: - replace: boolean, delete existing images before import - target: enum (biblio_id, item_id), specifies what the first column of the mapping file represents Requires tools: upload_local_cover_images permission. Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ prove t/db_dependent/api/v1/cover_images.t => SUCCESS: Tests pass! 3. Tests cover: - Authentication required (401) - Authorization required (403) - Successful upload enqueues job (201) - Replace flag forwarded correctly - Missing file returns 400 4. Sign off :-D Sponsored-by: ByWater Solutions -- You are receiving this mail because: You are watching all bug changes.