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

(-)a/api/v1/swagger/paths/acquisitions_baskets.yaml (-2 / +9 lines)
Lines 15-20 Link Here
15
      - $ref: "../swagger.yaml#/parameters/q_param"
15
      - $ref: "../swagger.yaml#/parameters/q_param"
16
      - $ref: "../swagger.yaml#/parameters/q_body"
16
      - $ref: "../swagger.yaml#/parameters/q_body"
17
      - $ref: "../swagger.yaml#/parameters/q_header"
17
      - $ref: "../swagger.yaml#/parameters/q_header"
18
      - name: x-koha-embed
19
        in: header
20
        required: false
21
        description: Embed list sent as a request header
22
        type: array
23
        items:
24
          type: string
25
          enum:
26
            - extended_attributes
18
    produces:
27
    produces:
19
      - application/json
28
      - application/json
20
    responses:
29
    responses:
Lines 42-46 Link Here
42
    x-koha-authorization:
51
    x-koha-authorization:
43
      permissions:
52
      permissions:
44
        acquisition: order_manage
53
        acquisition: order_manage
45
    x-koha-embed:
46
      - extended_attributes
(-)a/api/v1/swagger/paths/acquisitions_funds.yaml (-4 / +20 lines)
Lines 76-81 Link Here
76
      - $ref: "../swagger.yaml#/parameters/q_param"
76
      - $ref: "../swagger.yaml#/parameters/q_param"
77
      - $ref: "../swagger.yaml#/parameters/q_body"
77
      - $ref: "../swagger.yaml#/parameters/q_body"
78
      - $ref: "../swagger.yaml#/parameters/q_header"
78
      - $ref: "../swagger.yaml#/parameters/q_header"
79
      - name: x-koha-embed
80
        in: header
81
        required: false
82
        description: Embed list sent as a request header
83
        type: array
84
        items:
85
          type: string
86
          enum:
87
            - extended_attributes
88
        collectionFormat: csv
79
    produces:
89
    produces:
80
      - application/json
90
      - application/json
81
    responses:
91
    responses:
Lines 103-110 Link Here
103
    x-koha-authorization:
113
    x-koha-authorization:
104
      permissions:
114
      permissions:
105
        acquisition: budget_modify
115
        acquisition: budget_modify
106
    x-koha-embed:
107
      - extended_attributes
108
/acquisitions/funds/users:
116
/acquisitions/funds/users:
109
  get:
117
  get:
110
    x-mojo-to: Acquisitions::Funds#list_users
118
    x-mojo-to: Acquisitions::Funds#list_users
Lines 121-126 Link Here
121
      - $ref: "../swagger.yaml#/parameters/q_param"
129
      - $ref: "../swagger.yaml#/parameters/q_param"
122
      - $ref: "../swagger.yaml#/parameters/q_body"
130
      - $ref: "../swagger.yaml#/parameters/q_body"
123
      - $ref: "../swagger.yaml#/parameters/q_header"
131
      - $ref: "../swagger.yaml#/parameters/q_header"
132
      - name: x-koha-embed
133
        in: header
134
        required: false
135
        description: Embed list sent as a request header
136
        type: array
137
        items:
138
          type: string
139
          enum:
140
            - extended_attributes
141
        collectionFormat: csv
124
    produces:
142
    produces:
125
      - application/json
143
      - application/json
126
    responses:
144
    responses:
Lines 148-152 Link Here
148
    x-koha-authorization:
166
    x-koha-authorization:
149
      permissions:
167
      permissions:
150
        acquisition: budget_modify
168
        acquisition: budget_modify
151
    x-koha-embed:
152
      - extended_attributes
(-)a/api/v1/swagger/paths/acquisitions_orders.yaml (-28 lines)
Lines 100-119 Link Here
100
        acquisition:
100
        acquisition:
101
          - order_manage
101
          - order_manage
102
          - order_manage_all
102
          - order_manage_all
103
    x-koha-embed:
104
      - basket
105
      - basket.basket_group
106
      - basket.creator
107
      - biblio
108
      - biblio.active_orders+count
109
      - biblio.holds+count
110
      - biblio.items+count
111
      - biblio.suggestions.suggester
112
      - fund
113
      - current_item_level_holds+count
114
      - invoice
115
      - items
116
      - subscription
117
  post:
103
  post:
118
    x-mojo-to: Acquisitions::Orders#add
104
    x-mojo-to: Acquisitions::Orders#add
119
    operationId: addOrder
105
    operationId: addOrder
Lines 228-247 Link Here
228
    x-koha-authorization:
214
    x-koha-authorization:
229
      permissions:
215
      permissions:
230
        acquisition: order_manage
216
        acquisition: order_manage
231
    x-koha-embed:
232
      - basket
233
      - basket.basket_group
234
      - basket.creator
235
      - biblio
236
      - biblio.active_orders+count
237
      - biblio.holds+count
238
      - biblio.items+count
239
      - biblio.suggestions.suggester
240
      - fund
241
      - current_item_level_holds+count
242
      - invoice
243
      - items
244
      - subscription
245
  put:
217
  put:
246
    x-mojo-to: Acquisitions::Orders#update
218
    x-mojo-to: Acquisitions::Orders#update
247
    operationId: updateOrder
219
    operationId: updateOrder
(-)a/api/v1/swagger/paths/biblios.yaml (-5 lines)
Lines 156-166 Link Here
156
    x-koha-authorization:
156
    x-koha-authorization:
157
      permissions:
157
      permissions:
158
        circulate: circulate_remaining_permissions
158
        circulate: circulate_remaining_permissions
159
    x-koha-embed:
160
      - issuer
161
      - item
162
      - patron
163
      - library
164
"/biblios/{biblio_id}/items":
159
"/biblios/{biblio_id}/items":
165
  get:
160
  get:
166
    x-mojo-to: Biblios#get_items
161
    x-mojo-to: Biblios#get_items
(-)a/api/v1/swagger/paths/cash_registers.yaml (-4 lines)
Lines 57-64 Link Here
57
    x-koha-authorization:
57
    x-koha-authorization:
58
      permissions:
58
      permissions:
59
        cash_management: cashup
59
        cash_management: cashup
60
    x-koha-embed:
61
      - manager
62
"/cashups/{cashup_id}":
60
"/cashups/{cashup_id}":
63
  get:
61
  get:
64
    x-mojo-to: CashRegisters::Cashups#get
62
    x-mojo-to: CashRegisters::Cashups#get
Lines 107-111 Link Here
107
    x-koha-authorization:
105
    x-koha-authorization:
108
      permissions:
106
      permissions:
109
        cash_management: cashup
107
        cash_management: cashup
110
    x-koha-embed:
111
      - summary
(-)a/api/v1/swagger/paths/checkouts.yaml (-4 lines)
Lines 60-67 Link Here
60
    x-koha-authorization:
60
    x-koha-authorization:
61
      permissions:
61
      permissions:
62
        circulate: circulate_remaining_permissions
62
        circulate: circulate_remaining_permissions
63
    x-koha-embed:
64
      - issuer
65
"/checkouts/{checkout_id}":
63
"/checkouts/{checkout_id}":
66
  get:
64
  get:
67
    x-mojo-to: Checkouts#get
65
    x-mojo-to: Checkouts#get
Lines 110-117 Link Here
110
    x-koha-authorization:
108
    x-koha-authorization:
111
      permissions:
109
      permissions:
112
        circulate: circulate_remaining_permissions
110
        circulate: circulate_remaining_permissions
113
    x-koha-embed:
114
      - issuer
115
"/checkouts/{checkout_id}/renewal":
111
"/checkouts/{checkout_id}/renewal":
116
  post:
112
  post:
117
    x-mojo-to: Checkouts#renew
113
    x-mojo-to: Checkouts#renew
(-)a/api/v1/swagger/paths/libraries.yaml (-4 lines)
Lines 133-140 Link Here
133
    x-koha-authorization:
133
    x-koha-authorization:
134
      permissions:
134
      permissions:
135
        catalogue: "1"
135
        catalogue: "1"
136
    x-koha-embed:
137
      - smtp_server
138
  post:
136
  post:
139
    x-mojo-to: Libraries#add
137
    x-mojo-to: Libraries#add
140
    operationId: addLibrary
138
    operationId: addLibrary
Lines 218-225 Link Here
218
    x-koha-authorization:
216
    x-koha-authorization:
219
      permissions:
217
      permissions:
220
        catalogue: "1"
218
        catalogue: "1"
221
    x-koha-embed:
222
      - smtp_server
223
  put:
219
  put:
224
    x-mojo-to: Libraries#update
220
    x-mojo-to: Libraries#update
225
    operationId: updateLibrary
221
    operationId: updateLibrary
(-)a/api/v1/swagger/paths/patrons.yaml (-7 lines)
Lines 392-402 Link Here
392
        - tools: "label_creator"
392
        - tools: "label_creator"
393
        - serials: "routing"
393
        - serials: "routing"
394
        - acquisition: "order_manage"
394
        - acquisition: "order_manage"
395
    x-koha-embed:
396
      - extended_attributes
397
      - checkouts+count
398
      - overdues+count
399
      - account_balance
400
  post:
395
  post:
401
    x-mojo-to: Patrons#add
396
    x-mojo-to: Patrons#add
402
    operationId: addPatron
397
    operationId: addPatron
Lines 506-513 Link Here
506
    x-koha-authorization:
501
    x-koha-authorization:
507
      permissions:
502
      permissions:
508
        borrowers: edit_borrowers
503
        borrowers: edit_borrowers
509
    x-koha-embed:
510
      - extended_attributes
511
  put:
504
  put:
512
    x-mojo-to: Patrons#update
505
    x-mojo-to: Patrons#update
513
    operationId: updatePatron
506
    operationId: updatePatron
(-)a/api/v1/swagger/paths/suggestions.yaml (-3 / +9 lines)
Lines 231-236 Link Here
231
      - $ref: "../swagger.yaml#/parameters/q_param"
231
      - $ref: "../swagger.yaml#/parameters/q_param"
232
      - $ref: "../swagger.yaml#/parameters/q_body"
232
      - $ref: "../swagger.yaml#/parameters/q_body"
233
      - $ref: "../swagger.yaml#/parameters/q_header"
233
      - $ref: "../swagger.yaml#/parameters/q_header"
234
      - name: x-koha-embed
235
        in: header
236
        required: false
237
        description: Embed list sent as a request header
238
        type: array
239
        items:
240
          type: string
241
          enum:
242
            - extended_attributes
234
    produces:
243
    produces:
235
      - application/json
244
      - application/json
236
    responses:
245
    responses:
Lines 258-262 Link Here
258
    x-koha-authorization:
267
    x-koha-authorization:
259
      permissions:
268
      permissions:
260
        suggestions: suggestions_manage
269
        suggestions: suggestions_manage
261
    x-koha-embed:
262
      - extended_attributes
263
- 

Return to bug 30536