|
Lines 149-154
Link Here
|
| 149 |
permissions: |
149 |
permissions: |
| 150 |
circulate: circulate_remaining_permissions |
150 |
circulate: circulate_remaining_permissions |
| 151 |
"/checkouts/{checkout_id}/renewals": |
151 |
"/checkouts/{checkout_id}/renewals": |
|
|
152 |
post: |
| 153 |
x-mojo-to: Checkouts#renew |
| 154 |
operationId: renewsCheckout |
| 155 |
tags: |
| 156 |
- checkouts |
| 157 |
summary: Renew a checkout |
| 158 |
parameters: |
| 159 |
- $ref: ../parameters.yaml#/checkout_id_pp |
| 160 |
- $ref: ../parameters.yaml#/seen_pp |
| 161 |
produces: |
| 162 |
- application/json |
| 163 |
responses: |
| 164 |
"201": |
| 165 |
description: Updated borrower's checkout |
| 166 |
schema: |
| 167 |
$ref: ../definitions.yaml#/checkout |
| 168 |
"403": |
| 169 |
description: Cannot renew checkout |
| 170 |
schema: |
| 171 |
$ref: ../definitions.yaml#/error |
| 172 |
"404": |
| 173 |
description: Checkout not found |
| 174 |
schema: |
| 175 |
$ref: ../definitions.yaml#/error |
| 176 |
"500": |
| 177 |
description: | |
| 178 |
Internal server error. Possible `error_code` attribute values: |
| 179 |
|
| 180 |
* `internal_server_error` |
| 181 |
schema: |
| 182 |
$ref: ../definitions.yaml#/error |
| 183 |
"503": |
| 184 |
description: Under maintenance |
| 185 |
schema: |
| 186 |
$ref: ../definitions.yaml#/error |
| 187 |
x-koha-authorization: |
| 188 |
permissions: |
| 189 |
circulate: circulate_remaining_permissions |
| 152 |
get: |
190 |
get: |
| 153 |
x-mojo-to: Checkouts#get_renewals |
191 |
x-mojo-to: Checkouts#get_renewals |
| 154 |
operationId: getRenewals |
192 |
operationId: getRenewals |
|
Lines 163-169
Link Here
|
| 163 |
"200": |
201 |
"200": |
| 164 |
description: List of checkouts renewals |
202 |
description: List of checkouts renewals |
| 165 |
schema: |
203 |
schema: |
| 166 |
$ref: ../definitions.yaml#/renewal |
204 |
$ref: ../definitions.yaml#/renewals |
| 167 |
"403": |
205 |
"403": |
| 168 |
description: Access forbidden |
206 |
description: Access forbidden |
| 169 |
schema: |
207 |
schema: |
| 170 |
- |
|
|