https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42503
--- Comment #4 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 198921 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198921&action=edit Bug 42503: Add holds queue REST API endpoint Adds GET /api/v1/holds/queue backed by Koha::Hold::HoldsQueueItems (the tmp_holdsqueue table populated by the holds queue cron job). New files: - Koha/REST/V1/Holds/Queue.pm: controller with list method - api/v1/swagger/paths/holds_queue.yaml: path spec - api/v1/swagger/definitions/holds_queue_item.yaml: definition Changes: - Koha/Hold/HoldsQueueItem.pm: adds to_api_mapping - api/v1/swagger/swagger.yaml: registers path and definition Supports filtering by holding_library_id, pickup_library_id, biblio_id, item_id, patron_id, item_level. Embeds: biblio, item, item+strings, patron, patron.notice_email_address. Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ prove xt/api.t => SUCCESS: Tests pass! 3. Populate the holds queue: k$ perl misc/cronjobs/holds/build_holdsqueue.pl 4. Verify the endpoint: GET /api/v1/holds/queue x-koha-embed: biblio,item+strings,patron => SUCCESS: Returns holds queue items with embedded data 5. Sign off :-D Assisted-by: Sonnet 4.6 (Anthropic) -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ 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/
