Bugzilla – Attachment 186442 Details for
Bug 40808
Consider a link table for accountlines to varying other Koha tables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40808: Add account_lines embedding support to POST /holds endpoint
Bug-40808-Add-accountlines-embedding-support-to-PO.patch (text/plain), 1.89 KB, created by
Martin Renvoize (ashimema)
on 2025-09-15 18:00:51 UTC
(
hide
)
Description:
Bug 40808: Add account_lines embedding support to POST /holds endpoint
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-09-15 18:00:51 UTC
Size:
1.89 KB
patch
obsolete
>From 265c479a8059f248235c4bc4a97f47c3481b36fa Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@openfifth.co.uk> >Date: Mon, 15 Sep 2025 14:17:19 +0100 >Subject: [PATCH] Bug 40808: Add account_lines embedding support to POST /holds > endpoint > >Adds x-koha-embed parameter to the POST /holds endpoint to allow >embedding account_lines in the response when creating a hold. > >This enables API consumers to immediately see any charges/fees >that are created as part of the hold placement process in a >single API call. > >Usage: > POST /api/v1/holds > x-koha-embed: account_lines > >The response will include any account lines (fees) automatically >created during hold placement, such as hold placement fees. >--- > api/v1/swagger/paths/holds.yaml | 10 ++++++++++ > api/v1/swagger/paths/patrons_holds.yaml | 2 +- > 2 files changed, 11 insertions(+), 1 deletion(-) > >diff --git a/api/v1/swagger/paths/holds.yaml b/api/v1/swagger/paths/holds.yaml >index d1d20715cb6..112948bd42a 100644 >--- a/api/v1/swagger/paths/holds.yaml >+++ b/api/v1/swagger/paths/holds.yaml >@@ -232,6 +232,16 @@ > - hold_limit > - restricted > collectionFormat: csv >+ - name: x-koha-embed >+ in: header >+ required: false >+ description: Embed list sent as a request header >+ type: array >+ items: >+ type: string >+ enum: >+ - debits >+ collectionFormat: csv > consumes: > - application/json > produces: >diff --git a/api/v1/swagger/paths/patrons_holds.yaml b/api/v1/swagger/paths/patrons_holds.yaml >index 739451e2fa9..9fb99b4c885 100644 >--- a/api/v1/swagger/paths/patrons_holds.yaml >+++ b/api/v1/swagger/paths/patrons_holds.yaml >@@ -34,7 +34,7 @@ > - deleted_biblio > - item > - pickup_library >- - account_lines >+ - debits > collectionFormat: csv > produces: > - application/json >-- >2.51.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40808
:
186436
|
186437
|
186438
|
186439
|
186440
|
186441
|
186442
|
186443
|
186458
|
186459
|
186460
|
186461
|
186462
|
186463
|
186464
|
186465