Bugzilla – Attachment 153000 Details for
Bug 23336
Add an API endpoint for checking an item out to a patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23336: (follow-up) Add checkout_availability schema
Bug-23336-follow-up-Add-checkoutavailability-schem.patch (text/plain), 2.28 KB, created by
Martin Renvoize (ashimema)
on 2023-07-04 06:23:34 UTC
(
hide
)
Description:
Bug 23336: (follow-up) Add checkout_availability schema
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-07-04 06:23:34 UTC
Size:
2.28 KB
patch
obsolete
>From d505418335ed13f6720287bb018fc987fa1ffbd3 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 4 Jul 2023 07:21:48 +0100 >Subject: [PATCH] Bug 23336: (follow-up) Add checkout_availability schema > >At some point in the patch series we lost the availability api schema. >This patch restores a basic version, but we should work towards a >clearer enum based schema for each of the available blockers, confirms >and warnings. >--- > .../definitions/checkout_availability.yaml | 18 ++++++++++++++++++ > api/v1/swagger/paths/checkouts.yaml | 2 +- > api/v1/swagger/swagger.yaml | 2 ++ > 3 files changed, 21 insertions(+), 1 deletion(-) > create mode 100644 api/v1/swagger/definitions/checkout_availability.yaml > >diff --git a/api/v1/swagger/definitions/checkout_availability.yaml b/api/v1/swagger/definitions/checkout_availability.yaml >new file mode 100644 >index 0000000000..3205eee09a >--- /dev/null >+++ b/api/v1/swagger/definitions/checkout_availability.yaml >@@ -0,0 +1,18 @@ >+--- >+type: object >+properties: >+ blockers: >+ type: object >+ description: blocking issues >+ confirms: >+ type: object >+ description: issues requireing confirmation >+ warnings: >+ type: object >+ description: informational issues >+ confirmation_token: >+ type: >+ - string >+ - "null" >+ description: token for confirmation >+additionalProperties: false >diff --git a/api/v1/swagger/paths/checkouts.yaml b/api/v1/swagger/paths/checkouts.yaml >index 07aec90dc7..fb448061f3 100644 >--- a/api/v1/swagger/paths/checkouts.yaml >+++ b/api/v1/swagger/paths/checkouts.yaml >@@ -350,7 +350,7 @@ > "200": > description: Availability > schema: >- type: "object" >+ $ref: "../swagger.yaml#/definitions/checkout_availability" > "403": > description: Access forbidden > schema: >diff --git a/api/v1/swagger/swagger.yaml b/api/v1/swagger/swagger.yaml >index 07f27fd0d4..3e248299ea 100644 >--- a/api/v1/swagger/swagger.yaml >+++ b/api/v1/swagger/swagger.yaml >@@ -26,6 +26,8 @@ definitions: > $ref: ./definitions/checkout.yaml > checkouts: > $ref: ./definitions/checkouts.yaml >+ checkout_availability: >+ $ref: ./definitions/checkout_availability.yaml > circ-rule-kind: > $ref: ./definitions/circ-rule-kind.yaml > city: >-- >2.41.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 23336
:
91632
|
91633
|
91634
|
150947
|
150948
|
150949
|
150954
|
150955
|
150956
|
150960
|
150961
|
150962
|
151253
|
151318
|
151319
|
151320
|
151321
|
151322
|
151353
|
151354
|
151355
|
151356
|
151357
|
152712
|
152713
|
152714
|
152715
|
152716
|
152938
|
152999
| 153000 |
153095
|
153096