[Bug 42951] New: Add REST API endpoints for retrieving cover images
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42951 Bug ID: 42951 Summary: Add REST API endpoints for retrieving cover images Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: REST API Assignee: koha-bugs@lists.koha-community.org Reporter: tomascohen@gmail.com QA Contact: testopia@bugs.koha-community.org CC: tomascohen@gmail.com Depends on: 42804 Target Milestone: --- This bug adds GET endpoints for fetching cover images (both full and thumbnail) via the REST API, replacing the CGI catalogue/image.pl script. Endpoints to implement: Staff side: GET /api/v1/cover_images/{cover_image_id} GET /api/v1/biblios/{biblio_id}/cover_images/{cover_image_id} Public side: GET /api/v1/public/biblios/{biblio_id}/cover_image GET /api/v1/public/items/{item_id}/cover_image All endpoints accept a 'thumbnail' query parameter (boolean) to return the thumbnail version instead of the full-size image. Responses are raw binary with appropriate Content-Type (image/png, image/jpeg, etc.) and caching headers. Depends on bug 42804 which migrates upload and delete to the REST API. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42804 [Bug 42804] Replace svc/cover_images and tools/upload-cover-image.pl with REST API -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org