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

Martin Renvoize (ashimema) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #186441|0                           |1
        is obsolete|                            |

--- Comment #14 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 186463
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=186463&action=edit
Bug 40808: Add REST API embedding support for hold account_lines

Adds support for embedding account lines in holds via the REST API:

1. api/v1/swagger/definitions/hold.yaml - Adds account_lines property
   to hold definition for API output when embedded

2. api/v1/swagger/paths/holds.yaml - Adds account_lines to the
   x-koha-embed enum for the GET /holds endpoint

3. api/v1/swagger/paths/patrons_holds.yaml - Adds account_lines to
   the x-koha-embed enum for GET /patrons/{patron_id}/holds endpoint

Usage:
  GET /api/v1/holds?x-koha-embed=account_lines
  GET /api/v1/patrons/123/holds?x-koha-embed=account_lines

This allows API consumers to retrieve holds with their associated
charges/fees in a single request, enabling efficient access to
hold-related financial information.

-- 
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