From b9e3f2abcc91cfc08426cecff00d4cad096be89d Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 20 Mar 2023 08:48:22 -0300 Subject: [PATCH] Bug 33227: (follow-up) Improve docs Signed-off-by: Tomas Cohen Arazi --- api/v1/swagger/paths/biblios.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/api/v1/swagger/paths/biblios.yaml b/api/v1/swagger/paths/biblios.yaml index 5fdf83bc07c..df653702a8f 100644 --- a/api/v1/swagger/paths/biblios.yaml +++ b/api/v1/swagger/paths/biblios.yaml @@ -6,6 +6,18 @@ tags: - biblios summary: Add biblio + description: | + Add a bibliographic record to Koha. An optional `x-framework-id` + can be passed, to specify the cataloguing framework to be used (instead + of the default). + + The request body is expected to contain different record formats depending + on the passed `Content-type` header you specify. Possible values and the required + formats are listed below: + + * application/marcxml+xml: MARCXML + * application/marc-in-json: MARC-in-JSON + * application/marc: Raw USMARC binary data parameters: - $ref: "../swagger.yaml#/parameters/framework_id_header" - $ref: "../swagger.yaml#/parameters/marc_schema_header" @@ -204,6 +216,18 @@ tags: - biblios summary: Update biblio + description: | + Updates a bibliographic record to Koha. An optional `x-framework-id` + can be passed, to specify the cataloguing framework to be used (instead + of the default). + + The request body is expected to contain different record formats depending + on the passed `Content-type` header you specify. Possible values and the required + formats are listed below: + + * application/marcxml+xml: MARCXML + * application/marc-in-json: MARC-in-JSON + * application/marc: Raw USMARC binary data parameters: - $ref: "../swagger.yaml#/parameters/biblio_id_pp" - $ref: "../swagger.yaml#/parameters/framework_id_header" -- 2.34.1