From 23048153d8acda0e98759d29438f974f481e77d5 Mon Sep 17 00:00:00 2001 From: Fridolin Somers 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