Lines 144-149
Link Here
|
144 |
x-koha-authorization: |
144 |
x-koha-authorization: |
145 |
permissions: |
145 |
permissions: |
146 |
updatecharges: remaining_permissions |
146 |
updatecharges: remaining_permissions |
|
|
147 |
"/patrons/{patron_id}/account/credits/{credit_id}": |
148 |
get: |
149 |
x-mojo-to: Patrons::Account#get_credit |
150 |
operationId: getPatronCredit |
151 |
tags: |
152 |
- patrons |
153 |
summary: Get a patron credit |
154 |
produces: |
155 |
- application/json |
156 |
parameters: |
157 |
- $ref: "../swagger.yaml#/parameters/patron_id_pp" |
158 |
- $ref: "../swagger.yaml#/parameters/credit_id_pp" |
159 |
responses: |
160 |
"200": |
161 |
description: A patron credit |
162 |
schema: |
163 |
$ref: "../swagger.yaml#/definitions/credit" |
164 |
"400": |
165 |
description: Bad request |
166 |
schema: |
167 |
$ref: "../swagger.yaml#/definitions/error" |
168 |
"403": |
169 |
description: Access forbidden |
170 |
schema: |
171 |
$ref: "../swagger.yaml#/definitions/error" |
172 |
"404": |
173 |
description: Patron not found |
174 |
schema: |
175 |
$ref: "../swagger.yaml#/definitions/error" |
176 |
"500": |
177 |
description: Internal error |
178 |
schema: |
179 |
$ref: "../swagger.yaml#/definitions/error" |
180 |
"503": |
181 |
description: Under maintenance |
182 |
schema: |
183 |
$ref: "../swagger.yaml#/definitions/error" |
184 |
x-koha-authorization: |
185 |
permissions: |
186 |
borrowers: edit_borrowers |
187 |
updatecharges: remaining_permissions |
147 |
"/patrons/{patron_id}/account/debits": |
188 |
"/patrons/{patron_id}/account/debits": |
148 |
get: |
189 |
get: |
149 |
x-mojo-to: Patrons::Account#list_debits |
190 |
x-mojo-to: Patrons::Account#list_debits |
Lines 246-248
Link Here
|
246 |
x-koha-authorization: |
287 |
x-koha-authorization: |
247 |
permissions: |
288 |
permissions: |
248 |
updatecharges: remaining_permissions |
289 |
updatecharges: remaining_permissions |
|
|
290 |
"/patrons/{patron_id}/account/debits/{debit_id}": |
291 |
get: |
292 |
x-mojo-to: Patrons::Account#get_debit |
293 |
operationId: getPatronDebit |
294 |
tags: |
295 |
- patrons |
296 |
summary: Get a patron debit |
297 |
produces: |
298 |
- application/json |
299 |
parameters: |
300 |
- $ref: "../swagger.yaml#/parameters/patron_id_pp" |
301 |
- $ref: "../swagger.yaml#/parameters/debit_id_pp" |
302 |
responses: |
303 |
"200": |
304 |
description: A patron debit |
305 |
schema: |
306 |
$ref: "../swagger.yaml#/definitions/debit" |
307 |
"400": |
308 |
description: Bad request |
309 |
schema: |
310 |
$ref: "../swagger.yaml#/definitions/error" |
311 |
"403": |
312 |
description: Access forbidden |
313 |
schema: |
314 |
$ref: "../swagger.yaml#/definitions/error" |
315 |
"404": |
316 |
description: Patron not found |
317 |
schema: |
318 |
$ref: "../swagger.yaml#/definitions/error" |
319 |
"500": |
320 |
description: Internal error |
321 |
schema: |
322 |
$ref: "../swagger.yaml#/definitions/error" |
323 |
"503": |
324 |
description: Under maintenance |
325 |
schema: |
326 |
$ref: "../swagger.yaml#/definitions/error" |
327 |
x-koha-authorization: |
328 |
permissions: |
329 |
borrowers: edit_borrowers |
330 |
updatecharges: remaining_permissions |