Bugzilla – Attachment 117135 Details for
Bug 27366
Add GET /patrons/:patron_id/holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27366: Spec changes
Bug-27366-Spec-changes.patch (text/plain), 3.49 KB, created by
Martin Renvoize (ashimema)
on 2021-02-22 10:42:17 UTC
(
hide
)
Description:
Bug 27366: Spec changes
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-02-22 10:42:17 UTC
Size:
3.49 KB
patch
obsolete
>From 399cc4cf9dead6b04e3647691570b94a251002d0 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 8 Jan 2021 13:15:58 -0300 >Subject: [PATCH] Bug 27366: Spec changes > >Add /api/v1/patrons/{patron_id}/holds route and holds object description >to the OpenAPI specification. > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > api/v1/swagger/paths.json | 3 + > api/v1/swagger/paths/patrons_holds.json | 87 +++++++++++++++++++++++++ > 2 files changed, 90 insertions(+) > create mode 100644 api/v1/swagger/paths/patrons_holds.json > >diff --git a/api/v1/swagger/paths.json b/api/v1/swagger/paths.json >index 0462a70b56..65ae3b4bb5 100644 >--- a/api/v1/swagger/paths.json >+++ b/api/v1/swagger/paths.json >@@ -110,6 +110,9 @@ > "/patrons/{patron_id}/account/credits": { > "$ref": "paths/patrons_account.json#/~1patrons~1{patron_id}~1account~1credits" > }, >+ "/patrons/{patron_id}/holds": { >+ "$ref": "paths/patrons_holds.json#/~1patrons~1{patron_id}~1holds" >+ }, > "/patrons/{patron_id}/password": { > "$ref": "paths/patrons_password.json#/~1patrons~1{patron_id}~1password" > }, >diff --git a/api/v1/swagger/paths/patrons_holds.json b/api/v1/swagger/paths/patrons_holds.json >new file mode 100644 >index 0000000000..ce2fcfa209 >--- /dev/null >+++ b/api/v1/swagger/paths/patrons_holds.json >@@ -0,0 +1,87 @@ >+{ >+ "/patrons/{patron_id}/holds": { >+ "get": { >+ "x-mojo-to": "Patrons::Holds#list", >+ "operationId": "getPatronHolds", >+ "tags": [ >+ "patrons", >+ "holds" >+ ], >+ "parameters": [ >+ { >+ "$ref": "../parameters.json#/patron_id_pp" >+ }, >+ { >+ "$ref": "../parameters.json#/match" >+ }, >+ { >+ "$ref": "../parameters.json#/order_by" >+ }, >+ { >+ "$ref": "../parameters.json#/page" >+ }, >+ { >+ "$ref": "../parameters.json#/per_page" >+ }, >+ { >+ "$ref": "../parameters.json#/q_param" >+ }, >+ { >+ "$ref": "../parameters.json#/q_body" >+ }, >+ { >+ "$ref": "../parameters.json#/q_header" >+ } >+ ], >+ "produces": [ >+ "application/json" >+ ], >+ "responses": { >+ "200": { >+ "description": "The patron holds", >+ "schema": { >+ "type": "array", >+ "items": { >+ "$ref": "../definitions.json#/hold" >+ } >+ } >+ }, >+ "401": { >+ "description": "Authentication required", >+ "schema": { >+ "$ref": "../definitions.json#/error" >+ } >+ }, >+ "403": { >+ "description": "Access forbidden", >+ "schema": { >+ "$ref": "../definitions.json#/error" >+ } >+ }, >+ "404": { >+ "description": "Patron not found", >+ "schema": { >+ "$ref": "../definitions.json#/error" >+ } >+ }, >+ "500": { >+ "description": "Internal server error", >+ "schema": { >+ "$ref": "../definitions.json#/error" >+ } >+ }, >+ "503": { >+ "description": "Under maintenance", >+ "schema": { >+ "$ref": "../definitions.json#/error" >+ } >+ } >+ }, >+ "x-koha-authorization": { >+ "permissions": { >+ "borrowers": "edit_borrowers" >+ } >+ } >+ } >+ } >+} >-- >2.20.1
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 27366
:
114971
|
114972
|
114973
|
114980
|
114981
|
114982
|
116015
|
116016
|
116017
| 117135 |
117136
|
117137