Bugzilla – Attachment 129961 Details for
Bug 29975
(Bug 21729 followup) patron_expiration_date missing in API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29975: [DRAFT] fix API
Bug-29975-DRAFT-fix-API.patch (text/plain), 1.95 KB, created by
Fridolin Somers
on 2022-01-29 00:21:23 UTC
(
hide
)
Description:
Bug 29975: [DRAFT] fix API
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2022-01-29 00:21:23 UTC
Size:
1.95 KB
patch
obsolete
>From 23048153d8acda0e98759d29438f974f481e77d5 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Fri, 28 Jan 2022 14:20:38 -1000 >Subject: [PATCH] Bug 29975: [DRAFT] fix API > >--- > Koha/Hold.pm | 1 + > api/v1/swagger/definitions/hold.yaml | 6 ++++++ > api/v1/swagger/paths/holds.yaml | 4 ++++ > 3 files changed, 11 insertions(+) > >diff --git a/Koha/Hold.pm b/Koha/Hold.pm >index 2eb45ba08a..50261d2721 100644 >--- a/Koha/Hold.pm >+++ b/Koha/Hold.pm >@@ -668,6 +668,7 @@ sub to_api_mapping { > itemnumber => 'item_id', > waitingdate => 'waiting_date', > expirationdate => 'expiration_date', >+ patron_expiration_date => 'patron_expiration_date', > lowestPriority => 'lowest_priority', > suspend => 'suspended', > suspend_until => 'suspended_until', >diff --git a/api/v1/swagger/definitions/hold.yaml b/api/v1/swagger/definitions/hold.yaml >index 1ca8114cf3..830e3d0f66 100644 >--- a/api/v1/swagger/definitions/hold.yaml >+++ b/api/v1/swagger/definitions/hold.yaml >@@ -74,6 +74,12 @@ properties: > - "null" > format: date > description: The date the hold expires >+ patron_expiration_date: >+ type: >+ - string >+ - "null" >+ format: date >+ description: The date the hold expires entered by patron > lowest_priority: > type: boolean > description: Controls if the hold is given the lowest priority on the queue >diff --git a/api/v1/swagger/paths/holds.yaml b/api/v1/swagger/paths/holds.yaml >index ea778c1a90..1ecbc424e8 100644 >--- a/api/v1/swagger/paths/holds.yaml >+++ b/api/v1/swagger/paths/holds.yaml >@@ -61,6 +61,10 @@ > in: query > description: Date the hold expires > type: string >+ - name: patron_expiration_date >+ in: query >+ description: Date the hold expires entered by patron >+ type: string > - name: lowest_priority > in: query > description: Lowest priority >-- >2.34.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 29975
:
129961
|
129988
|
130058
|
130090
|
130092