https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41129

--- Comment #48 from Paul Derscheid <[email protected]> ---
Created attachment 200580
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200580&action=edit
Bug 41129: Add API clients for booking-related endpoints

- Add BiblioAPIClient for biblio sub-resources (items, bookings,
  checkouts, pickup_locations)
- Add BookingAPIClient for bookings CRUD (create, update)
- Add LibraryAPIClient for /libraries/{id}/closed_dates
- Add CirculationRulesAPIClient for circulation rules lookup
- Extend PatronAPIClient with a search() method for paginated
  patron lookup and accept optional headers on get()
- Register the new clients in fetch/api-client.js (lazy) and
  vue/fetch/api-client.js (eager)

Test plan:
1. Apply the full series and run: yarn js:build
2. The clients carry no UI of their own; they are exercised
   end-to-end by the Cypress suites added with the booking modal
   patch later in this series:
   npx cypress run --browser electron \
     --spec 't/cypress/integration/Circulation/bookingsModalBasic_spec.ts'
3. Regression-check an existing consumer of the shared api-client
   registries, e.g. open the ERM module and confirm its tables
   still load

Sponsored-by: Büchereizentrale Schleswig-Holstein <https://www.bz-sh.de/>
Assisted-by: Opus 4.8 (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/

Reply via email to