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: "../swagger.yaml#/parameters/patron_id_pp" |
57 |
- $ref: "../swagger.yaml#/parameters/match" |
58 |
- $ref: "../swagger.yaml#/parameters/order_by" |
59 |
- $ref: "../swagger.yaml#/parameters/page" |
60 |
- $ref: "../swagger.yaml#/parameters/per_page" |
61 |
- $ref: "../swagger.yaml#/parameters/q_param" |
62 |
- $ref: "../swagger.yaml#/parameters/q_body" |
63 |
- $ref: "../swagger.yaml#/parameters/q_header" |
64 |
responses: |
65 |
"200": |
66 |
description: A list of credits |
67 |
schema: |
68 |
type: array |
69 |
items: |
70 |
$ref: "../swagger.yaml#/definitions/credit" |
71 |
"403": |
72 |
description: Access forbidden |
73 |
schema: |
74 |
$ref: "../swagger.yaml#/definitions/error" |
75 |
"500": |
76 |
description: Internal error |
77 |
schema: |
78 |
$ref: "../swagger.yaml#/definitions/error" |
79 |
"503": |
80 |
description: Under maintenance |
81 |
schema: |
82 |
$ref: "../swagger.yaml#/definitions/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: "../swagger.yaml#/parameters/patron_id_pp" |
146 |
- $ref: "../swagger.yaml#/parameters/match" |
147 |
- $ref: "../swagger.yaml#/parameters/order_by" |
148 |
- $ref: "../swagger.yaml#/parameters/page" |
149 |
- $ref: "../swagger.yaml#/parameters/per_page" |
150 |
- $ref: "../swagger.yaml#/parameters/q_param" |
151 |
- $ref: "../swagger.yaml#/parameters/q_body" |
152 |
- $ref: "../swagger.yaml#/parameters/q_header" |
153 |
responses: |
154 |
"200": |
155 |
description: A list of debits |
156 |
schema: |
157 |
type: array |
158 |
items: |
159 |
$ref: "../swagger.yaml#/definitions/debit" |
160 |
"403": |
161 |
description: Access forbidden |
162 |
schema: |
163 |
$ref: "../swagger.yaml#/definitions/error" |
164 |
"404": |
165 |
description: Patron not found |
166 |
schema: |
167 |
$ref: "../swagger.yaml#/definitions/error" |
168 |
"500": |
169 |
description: Internal error |
170 |
schema: |
171 |
$ref: "../swagger.yaml#/definitions/error" |
172 |
"503": |
173 |
description: Under maintenance |
174 |
schema: |
175 |
$ref: "../swagger.yaml#/definitions/error" |
176 |
x-koha-authorization: |
177 |
permissions: |
178 |
borrowers: edit_borrowers |
179 |
updatecharges: remaining_permissions |