View | Details | Raw Unified | Return to bug 30275
Collapse All | Expand All

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

Return to bug 30275