Lines 132-137
Link Here
|
132 |
permissions: |
132 |
permissions: |
133 |
circulate: circulate_remaining_permissions |
133 |
circulate: circulate_remaining_permissions |
134 |
"/checkouts/{checkout_id}/renewals": |
134 |
"/checkouts/{checkout_id}/renewals": |
|
|
135 |
post: |
136 |
x-mojo-to: Checkouts#renew |
137 |
operationId: renewsCheckout |
138 |
tags: |
139 |
- checkouts |
140 |
summary: Renew a checkout |
141 |
parameters: |
142 |
- $ref: ../parameters.yaml#/checkout_id_pp |
143 |
- $ref: ../parameters.yaml#/seen_pp |
144 |
produces: |
145 |
- application/json |
146 |
responses: |
147 |
"201": |
148 |
description: Updated borrower's checkout |
149 |
schema: |
150 |
$ref: ../definitions.yaml#/checkout |
151 |
"403": |
152 |
description: Cannot renew checkout |
153 |
schema: |
154 |
$ref: ../definitions.yaml#/error |
155 |
"404": |
156 |
description: Checkout not found |
157 |
schema: |
158 |
$ref: ../definitions.yaml#/error |
159 |
"500": |
160 |
description: | |
161 |
Internal server error. Possible `error_code` attribute values: |
162 |
|
163 |
* `internal_server_error` |
164 |
schema: |
165 |
$ref: ../definitions.yaml#/error |
166 |
"503": |
167 |
description: Under maintenance |
168 |
schema: |
169 |
$ref: ../definitions.yaml#/error |
170 |
x-koha-authorization: |
171 |
permissions: |
172 |
circulate: circulate_remaining_permissions |
135 |
get: |
173 |
get: |
136 |
x-mojo-to: Checkouts#get_renewals |
174 |
x-mojo-to: Checkouts#get_renewals |
137 |
operationId: getRenewals |
175 |
operationId: getRenewals |
Lines 146-152
Link Here
|
146 |
"200": |
184 |
"200": |
147 |
description: List of checkouts renewals |
185 |
description: List of checkouts renewals |
148 |
schema: |
186 |
schema: |
149 |
$ref: ../definitions.yaml#/renewal |
187 |
$ref: ../definitions.yaml#/renewals |
150 |
"403": |
188 |
"403": |
151 |
description: Access forbidden |
189 |
description: Access forbidden |
152 |
schema: |
190 |
schema: |
153 |
- |
|
|