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

(-)a/api/v1/swagger/paths/catalog_concerns.yaml (+40 lines)
Lines 210-212 Link Here
210
    x-koha-authorization:
210
    x-koha-authorization:
211
      permissions:
211
      permissions:
212
        editcatalogue: edit_catalogue
212
        editcatalogue: edit_catalogue
213
/public/catalog/concerns:
214
  post:
215
    x-mojo-to: Catalog::Concerns#add
216
    operationId: addConcernPublic
217
    tags:
218
      - concerns
219
    summary: Add catalog concern
220
    parameters:
221
      - name: body
222
        in: body
223
        description: A JSON object containing informations about the new hold
224
        required: true
225
        schema:
226
          $ref: "../swagger.yaml#/definitions/catalog_concern"
227
    produces:
228
      - application/json
229
    responses:
230
      "201":
231
        description: Concern added
232
        schema:
233
          $ref: "../swagger.yaml#/definitions/catalog_concern"
234
      "401":
235
        description: Authentication required
236
        schema:
237
          $ref: "../swagger.yaml#/definitions/error"
238
      "403":
239
        description: Access forbidden
240
        schema:
241
          $ref: "../swagger.yaml#/definitions/error"
242
      "500":
243
        description: |
244
          Internal server error. Possible `error_code` attribute values:
245
246
          * `internal_server_error`
247
        schema:
248
          $ref: "../swagger.yaml#/definitions/error"
249
      "503":
250
        description: Under maintenance
251
        schema:
252
          $ref: "../swagger.yaml#/definitions/error"
(-)a/api/v1/swagger/swagger.yaml (-1 / +2 lines)
Lines 221-226 paths: Link Here
221
    $ref: "./paths/biblios.yaml#/~1public~1biblios~1{biblio_id}~1items"
221
    $ref: "./paths/biblios.yaml#/~1public~1biblios~1{biblio_id}~1items"
222
  "/public/biblios/{biblio_id}/ratings":
222
  "/public/biblios/{biblio_id}/ratings":
223
    $ref: "./paths/biblios.yaml#/~1public~1biblios~1{biblio_id}~1ratings"
223
    $ref: "./paths/biblios.yaml#/~1public~1biblios~1{biblio_id}~1ratings"
224
  "/public/catalog/concerns":
225
    $ref: "./paths/catalog_concerns.yaml#/~1public~1catalog~1concerns"
224
  /public/libraries:
226
  /public/libraries:
225
    $ref: ./paths/libraries.yaml#/~1public~1libraries
227
    $ref: ./paths/libraries.yaml#/~1public~1libraries
226
  "/public/libraries/{library_id}":
228
  "/public/libraries/{library_id}":
227
- 

Return to bug 31028