Lines 43-48
Link Here
|
43 |
borrowers: edit_borrowers |
43 |
borrowers: edit_borrowers |
44 |
updatecharges: remaining_permissions |
44 |
updatecharges: remaining_permissions |
45 |
"/patrons/{patron_id}/account/credits": |
45 |
"/patrons/{patron_id}/account/credits": |
|
|
46 |
get: |
47 |
x-mojo-to: Patrons::Account#list_credits |
48 |
operationId: listPatronCredits |
49 |
tags: |
50 |
- patrons |
51 |
- credits |
52 |
summary: List patron credits |
53 |
produces: |
54 |
- application/json |
55 |
parameters: |
56 |
- $ref: ../parameters.yaml#/patron_id_pp |
57 |
- $ref: ../parameters.yaml#/match |
58 |
- $ref: ../parameters.yaml#/order_by |
59 |
- $ref: ../parameters.yaml#/page |
60 |
- $ref: ../parameters.yaml#/per_page |
61 |
- $ref: ../parameters.yaml#/q_param |
62 |
- $ref: ../parameters.yaml#/q_body |
63 |
- $ref: ../parameters.yaml#/q_header |
64 |
responses: |
65 |
"200": |
66 |
description: A list of credits |
67 |
schema: |
68 |
type: array |
69 |
items: |
70 |
$ref: ../definitions.yaml#/credit |
71 |
"403": |
72 |
description: Access forbidden |
73 |
schema: |
74 |
$ref: ../definitions.yaml#/error |
75 |
"500": |
76 |
description: Internal error |
77 |
schema: |
78 |
$ref: ../definitions.yaml#/error |
79 |
"503": |
80 |
description: Under maintenance |
81 |
schema: |
82 |
$ref: ../definitions.yaml#/error |
83 |
x-koha-authorization: |
84 |
permissions: |
85 |
borrowers: edit_borrowers |
86 |
updatecharges: remaining_permissions |
46 |
post: |
87 |
post: |
47 |
x-mojo-to: Patrons::Account#add_credit |
88 |
x-mojo-to: Patrons::Account#add_credit |
48 |
operationId: addPatronCredit |
89 |
operationId: addPatronCredit |
Lines 90-92
Link Here
|
90 |
x-koha-authorization: |
131 |
x-koha-authorization: |
91 |
permissions: |
132 |
permissions: |
92 |
updatecharges: remaining_permissions |
133 |
updatecharges: remaining_permissions |
|
|
134 |
"/patrons/{patron_id}/account/debits": |
135 |
get: |
136 |
x-mojo-to: Patrons::Account#list_debits |
137 |
operationId: listPatronDebits |
138 |
tags: |
139 |
- patrons |
140 |
- debits |
141 |
summary: List patron debits |
142 |
produces: |
143 |
- application/json |
144 |
parameters: |
145 |
- $ref: ../parameters.yaml#/patron_id_pp |
146 |
- $ref: ../parameters.yaml#/match |
147 |
- $ref: ../parameters.yaml#/order_by |
148 |
- $ref: ../parameters.yaml#/page |
149 |
- $ref: ../parameters.yaml#/per_page |
150 |
- $ref: ../parameters.yaml#/q_param |
151 |
- $ref: ../parameters.yaml#/q_body |
152 |
- $ref: ../parameters.yaml#/q_header |
153 |
responses: |
154 |
"200": |
155 |
description: A list of debits |
156 |
schema: |
157 |
type: array |
158 |
items: |
159 |
$ref: ../definitions.yaml#/debit |
160 |
"403": |
161 |
description: Access forbidden |
162 |
schema: |
163 |
$ref: ../definitions.yaml#/error |
164 |
"404": |
165 |
description: Patron not found |
166 |
schema: |
167 |
$ref: ../definitions.yaml#/error |
168 |
"500": |
169 |
description: Internal error |
170 |
schema: |
171 |
$ref: ../definitions.yaml#/error |
172 |
"503": |
173 |
description: Under maintenance |
174 |
schema: |
175 |
$ref: ../definitions.yaml#/error |
176 |
x-koha-authorization: |
177 |
permissions: |
178 |
borrowers: edit_borrowers |
179 |
updatecharges: remaining_permissions |