From ba9643ddffcc9c3a0d28fd17ac2f1534c1d61e5e Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Tue, 29 Oct 2024 17:11:34 +0000 Subject: [PATCH] Bug 38262: Update API specs --- api/v1/swagger/definitions/vendor.yaml | 10 ++++++++++ api/v1/swagger/paths/acquisitions_vendors.yaml | 4 ++++ api/v1/swagger/paths/extended_attribute_types.yaml | 6 +++++- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/api/v1/swagger/definitions/vendor.yaml b/api/v1/swagger/definitions/vendor.yaml index 3132bca44b9..51de6cbce0f 100644 --- a/api/v1/swagger/definitions/vendor.yaml +++ b/api/v1/swagger/definitions/vendor.yaml @@ -146,6 +146,16 @@ properties: contracts: type: array description: List of contracts + extended_attributes: + description: Related additional field values + type: + - array + items: + $ref: extended_attribute_value.yaml + _strings: + type: + - object + - "null" additionalProperties: false required: - name diff --git a/api/v1/swagger/paths/acquisitions_vendors.yaml b/api/v1/swagger/paths/acquisitions_vendors.yaml index 4577db62dc7..836c4da66a1 100644 --- a/api/v1/swagger/paths/acquisitions_vendors.yaml +++ b/api/v1/swagger/paths/acquisitions_vendors.yaml @@ -37,6 +37,8 @@ - aliases - baskets - subscriptions+count + - extended_attributes + - +strings collectionFormat: csv responses: "200": @@ -153,6 +155,8 @@ - interfaces - contacts - contracts + - extended_attributes + - +strings collectionFormat: csv produces: - application/json diff --git a/api/v1/swagger/paths/extended_attribute_types.yaml b/api/v1/swagger/paths/extended_attribute_types.yaml index eba7aec9017..f15172d1849 100644 --- a/api/v1/swagger/paths/extended_attribute_types.yaml +++ b/api/v1/swagger/paths/extended_attribute_types.yaml @@ -23,6 +23,7 @@ - package - order - subscription + - vendor - $ref: "../swagger.yaml#/parameters/match" - $ref: "../swagger.yaml#/parameters/order_by" - $ref: "../swagger.yaml#/parameters/page" @@ -59,4 +60,7 @@ $ref: "../swagger.yaml#/definitions/error" x-koha-authorization: permissions: - parameters: manage_additional_fields + - parameters: + - manage_additional_fields + - acquisition: + - vendors_manage -- 2.39.3 (Apple Git-146)