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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]
        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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to