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

(-)a/api/v1/swagger/paths/biblios.yaml (-1 / +24 lines)
Lines 6-11 Link Here
6
    tags:
6
    tags:
7
      - biblios
7
      - biblios
8
    summary: Add biblio
8
    summary: Add biblio
9
    description: |
10
      Add a bibliographic record to Koha. An optional `x-framework-id`
11
      can be passed, to specify the cataloguing framework to be used (instead
12
      of the default).
13
14
      The request body is expected to contain different record formats depending
15
      on the passed `Content-type` header you specify. Possible values and the required
16
      formats are listed below:
17
18
      * application/marcxml+xml: MARCXML
19
      * application/marc-in-json: MARC-in-JSON
20
      * application/marc: Raw USMARC binary data
9
    parameters:
21
    parameters:
10
      - $ref: "../swagger.yaml#/parameters/framework_id_header"
22
      - $ref: "../swagger.yaml#/parameters/framework_id_header"
11
      - $ref: "../swagger.yaml#/parameters/marc_schema_header"
23
      - $ref: "../swagger.yaml#/parameters/marc_schema_header"
Lines 204-209 Link Here
204
    tags:
216
    tags:
205
      - biblios
217
      - biblios
206
    summary: Update biblio
218
    summary: Update biblio
219
    description: |
220
      Updates a bibliographic record to Koha. An optional `x-framework-id`
221
      can be passed, to specify the cataloguing framework to be used (instead
222
      of the default).
223
224
      The request body is expected to contain different record formats depending
225
      on the passed `Content-type` header you specify. Possible values and the required
226
      formats are listed below:
227
228
      * application/marcxml+xml: MARCXML
229
      * application/marc-in-json: MARC-in-JSON
230
      * application/marc: Raw USMARC binary data
207
    parameters:
231
    parameters:
208
      - $ref: "../swagger.yaml#/parameters/biblio_id_pp"
232
      - $ref: "../swagger.yaml#/parameters/biblio_id_pp"
209
      - $ref: "../swagger.yaml#/parameters/framework_id_header"
233
      - $ref: "../swagger.yaml#/parameters/framework_id_header"
210
- 

Return to bug 33227