Line 0
Link Here
|
|
|
1 |
--- |
2 |
"/article_requests/{article_request_id}": |
3 |
delete: |
4 |
x-mojo-to: ArticleRequests#cancel |
5 |
operationId: cancelArticleRequest |
6 |
tags: |
7 |
- article_requests |
8 |
summary: Cancel article requests |
9 |
parameters: |
10 |
- name: article_request_id |
11 |
in: path |
12 |
description: Article request identifier |
13 |
required: true |
14 |
type: integer |
15 |
- name: cancellation_reason |
16 |
in: query |
17 |
description: Article request cancellation reason |
18 |
required: false |
19 |
type: string |
20 |
- name: notes |
21 |
in: query |
22 |
description: Article request custom cancellation reason |
23 |
required: false |
24 |
type: string |
25 |
produces: |
26 |
- application/json |
27 |
responses: |
28 |
"204": |
29 |
description: Article request canceled |
30 |
"400": |
31 |
description: Bad request |
32 |
schema: |
33 |
$ref: ../definitions.json#/error |
34 |
"401": |
35 |
description: Authentication required |
36 |
schema: |
37 |
$ref: ../definitions.json#/error |
38 |
"403": |
39 |
description: Access forbidden |
40 |
schema: |
41 |
$ref: ../definitions.json#/error |
42 |
"404": |
43 |
description: Patron not found |
44 |
schema: |
45 |
$ref: ../definitions.json#/error |
46 |
"500": |
47 |
description: Internal server error |
48 |
schema: |
49 |
$ref: ../definitions.json#/error |
50 |
"503": |
51 |
description: Under maintenance |
52 |
schema: |
53 |
$ref: ../definitions.json#/error |
54 |
x-koha-authorization: |
55 |
permissions: |
56 |
reserveforothers: "1" |
57 |
"/public/patrons/{patron_id}/article_requests/{article_request_id}": |
58 |
delete: |
59 |
x-mojo-to: ArticleRequests#patron_cancel |
60 |
operationId: publicCancelPatronArticleRequest |
61 |
tags: |
62 |
- article_requests |
63 |
summary: Cancel patron's article requests |
64 |
parameters: |
65 |
- $ref: ../parameters.json#/patron_id_pp |
66 |
- name: article_request_id |
67 |
in: path |
68 |
description: Article request identifier |
69 |
required: true |
70 |
type: integer |
71 |
- name: cancellation_reason |
72 |
in: query |
73 |
description: Article request cancellation reason |
74 |
required: false |
75 |
type: string |
76 |
- name: notes |
77 |
in: query |
78 |
description: Article request custom cancellation reason |
79 |
required: false |
80 |
type: string |
81 |
produces: |
82 |
- application/json |
83 |
responses: |
84 |
"204": |
85 |
description: Patron's article request canceled |
86 |
"400": |
87 |
description: Bad request |
88 |
schema: |
89 |
$ref: ../definitions.json#/error |
90 |
"401": |
91 |
description: Authentication required |
92 |
schema: |
93 |
$ref: ../definitions.json#/error |
94 |
"403": |
95 |
description: Access forbidden |
96 |
schema: |
97 |
$ref: ../definitions.json#/error |
98 |
"404": |
99 |
description: Patron not found |
100 |
schema: |
101 |
$ref: ../definitions.json#/error |
102 |
"500": |
103 |
description: Internal server error |
104 |
schema: |
105 |
$ref: ../definitions.json#/error |
106 |
"503": |
107 |
description: Under maintenance |
108 |
schema: |
109 |
$ref: ../definitions.json#/error |
110 |
x-koha-authorization: |
111 |
allow-owner: true |