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

(-)a/api/v1/swagger/paths/rpc_biblios.yaml (+140 lines)
Line 0 Link Here
1
---
2
"/rpc/biblios/{biblio_id}/items/populate_empty_callnumbers":
3
  post:
4
    x-mojo-to: RPC::Biblios#populate_empty_callnumbers
5
    operationId: RPCBiblioPopulateEmptyItemsCallnumbers
6
    tags:
7
      - biblios
8
    summary: Populate empty item callnumbers from biblio callnumber for all items on record with no callnumber
9
    parameters:
10
      - $ref: "../swagger.yaml#/parameters/biblio_id_pp"
11
    produces:
12
      - application/json
13
    responses:
14
      "200":
15
        description: Callnumbers updated
16
        schema:
17
          type: object
18
          properties:
19
            updated_items_count:
20
              description: Number of items updated
21
              type: integer
22
            callnumber:
23
              description: Callnumber added to updated items
24
              type: string
25
            modified_item_ids:
26
              description: A list of item IDs for the actually modified items
27
              type: array
28
              items:
29
                type: integer
30
                description: Internal item identifier for the modified item
31
          required:
32
            - updated_items_count
33
            - callnumber
34
          additionalProperties: false
35
      "400":
36
        description: Bad request
37
        schema:
38
          $ref: "../swagger.yaml#/definitions/error"
39
      "401":
40
        description: Authentication required
41
        schema:
42
          $ref: "../swagger.yaml#/definitions/error"
43
      "403":
44
        description: Access forbidden
45
        schema:
46
          $ref: "../swagger.yaml#/definitions/error"
47
      "404":
48
        description: Not found
49
        schema:
50
          $ref: "../swagger.yaml#/definitions/error"
51
      "409":
52
        description: |
53
          Conflict. Possible `error_code` attribute values:
54
55
          * `missing_configuration`
56
          * `callnumber_empty`
57
      "500":
58
        description: |
59
          Internal server error. Possible `error_code` attribute values:
60
61
          * `internal_server_error`
62
        schema:
63
          $ref: "../swagger.yaml#/definitions/error"
64
      "503":
65
        description: Under maintenance
66
        schema:
67
          $ref: "../swagger.yaml#/definitions/error"
68
    x-koha-authorization:
69
      permissions:
70
        editcatalogue: edit_catalogue
71
"/rpc/biblios/{biblio_id}/items/{item_id}/populate_empty_callnumbers":
72
  post:
73
    x-mojo-to: RPC::Biblios#populate_empty_callnumbers
74
    operationId: RPCBiblioPopulateEmptyItemCallnumber
75
    tags:
76
      - biblios
77
    summary: Populate empty item callnumbers from biblio callnumber for all items on record with no callnumber
78
    parameters:
79
      - $ref: "../swagger.yaml#/parameters/biblio_id_pp"
80
      - $ref: "../swagger.yaml#/parameters/item_id_pp"
81
    produces:
82
      - application/json
83
    responses:
84
      "200":
85
        description: Callnumbers updated
86
        schema:
87
          type: object
88
          properties:
89
            updated_items_count:
90
              description: Number of items updated
91
              type: integer
92
            callnumber:
93
              description: Callnumber added to updated items
94
              type: string
95
            modified_item_ids:
96
              description: A list of item IDs for the actually modified items
97
              type: array
98
              items:
99
                type: integer
100
                description: Internal item identifier for the modified item
101
          required:
102
            - updated_items_count
103
            - callnumber
104
          additionalProperties: false
105
      "400":
106
        description: Bad request
107
        schema:
108
          $ref: "../swagger.yaml#/definitions/error"
109
      "401":
110
        description: Authentication required
111
        schema:
112
          $ref: "../swagger.yaml#/definitions/error"
113
      "403":
114
        description: Access forbidden
115
        schema:
116
          $ref: "../swagger.yaml#/definitions/error"
117
      "404":
118
        description: Not found
119
        schema:
120
          $ref: "../swagger.yaml#/definitions/error"
121
      "409":
122
        description: |
123
          Conflict. Possible `error_code` attribute values:
124
125
          * `missing_configuration`
126
          * `callnumber_empty`
127
      "500":
128
        description: |
129
          Internal server error. Possible `error_code` attribute values:
130
131
          * `internal_server_error`
132
        schema:
133
          $ref: "../swagger.yaml#/definitions/error"
134
      "503":
135
        description: Under maintenance
136
        schema:
137
          $ref: "../swagger.yaml#/definitions/error"
138
    x-koha-authorization:
139
      permissions:
140
        editcatalogue: edit_catalogue
(-)a/api/v1/swagger/swagger.yaml (-1 / +4 lines)
Lines 541-546 paths: Link Here
541
    $ref: "./paths/rotas.yaml#/~1rotas~1{rota_id}"
541
    $ref: "./paths/rotas.yaml#/~1rotas~1{rota_id}"
542
  "/rotas/{rota_id}/stages/{stage_id}/position":
542
  "/rotas/{rota_id}/stages/{stage_id}/position":
543
    $ref: "./paths/rotas.yaml#/~1rotas~1{rota_id}~1stages~1{stage_id}~1position"
543
    $ref: "./paths/rotas.yaml#/~1rotas~1{rota_id}~1stages~1{stage_id}~1position"
544
  "/rpc/biblios/{biblio_id}/items/{item_id}/populate_empty_callnumbers":
545
    $ref: "./paths/rpc_biblios.yaml#/~1rpc~1biblios~1{biblio_id}~1items~1{item_id}~1populate_empty_callnumbers"
546
  "/rpc/biblios/{biblio_id}/items/populate_empty_callnumbers":
547
    $ref: "./paths/rpc_biblios.yaml#/~1rpc~1biblios~1{biblio_id}~1items~1populate_empty_callnumbers"
544
  /suggestions:
548
  /suggestions:
545
    $ref: ./paths/suggestions.yaml#/~1suggestions
549
    $ref: ./paths/suggestions.yaml#/~1suggestions
546
  "/suggestions/{suggestion_id}":
550
  "/suggestions/{suggestion_id}":
547
- 

Return to bug 38226