Bugzilla – Attachment 116015 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.37 KB, created by
Marcel de Rooy
on 2021-01-29 10:41:57 UTC
(
hide
)
Description:
Bug 27366: Spec changes
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-01-29 10:41:57 UTC
Size:
3.37 KB
patch
obsolete
>From 8bc0c2fd334aec40b6c9f2f8750cf36dd696592a 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 >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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 df30f36459..ebec766421 100644 >--- a/api/v1/swagger/paths.json >+++ b/api/v1/swagger/paths.json >@@ -104,6 +104,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.11.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 27366
:
114971
|
114972
|
114973
|
114980
|
114981
|
114982
|
116015
|
116016
|
116017
|
117135
|
117136
|
117137