Line 0
Link Here
|
|
|
1 |
--- |
2 |
"/patrons/{patron_id}/old_holds": |
3 |
get: |
4 |
x-mojo-to: Patrons::OldHolds#list |
5 |
operationId: getPatronOldHolds |
6 |
tags: |
7 |
- old_holds |
8 |
summary: List old holds for a patron |
9 |
parameters: |
10 |
- $ref: "../swagger.yaml#/parameters/patron_id_pp" |
11 |
- $ref: "../swagger.yaml#/parameters/match" |
12 |
- $ref: "../swagger.yaml#/parameters/order_by" |
13 |
- $ref: "../swagger.yaml#/parameters/page" |
14 |
- $ref: "../swagger.yaml#/parameters/per_page" |
15 |
- $ref: "../swagger.yaml#/parameters/q_param" |
16 |
- $ref: "../swagger.yaml#/parameters/q_body" |
17 |
- $ref: "../swagger.yaml#/parameters/request_id_header" |
18 |
- name: x-koha-embed |
19 |
in: header |
20 |
required: false |
21 |
description: Embed list sent as a request header |
22 |
type: array |
23 |
items: |
24 |
type: string |
25 |
enum: |
26 |
- cancellation_requested |
27 |
collectionFormat: csv |
28 |
produces: |
29 |
- application/json |
30 |
responses: |
31 |
"200": |
32 |
description: The patron old holds |
33 |
schema: |
34 |
type: array |
35 |
items: |
36 |
$ref: "../swagger.yaml#/definitions/hold" |
37 |
"401": |
38 |
description: Authentication required |
39 |
schema: |
40 |
$ref: "../swagger.yaml#/definitions/error" |
41 |
"403": |
42 |
description: Access forbidden |
43 |
schema: |
44 |
$ref: "../swagger.yaml#/definitions/error" |
45 |
"404": |
46 |
description: Patron not found |
47 |
schema: |
48 |
$ref: "../swagger.yaml#/definitions/error" |
49 |
"500": |
50 |
description: | |
51 |
Internal server error. Possible `error_code` attribute values: |
52 |
|
53 |
* `internal_server_error` |
54 |
schema: |
55 |
$ref: "../swagger.yaml#/definitions/error" |
56 |
"503": |
57 |
description: Under maintenance |
58 |
schema: |
59 |
$ref: "../swagger.yaml#/definitions/error" |
60 |
x-koha-authorization: |
61 |
permissions: |
62 |
borrowers: edit_borrowers |