From 7c70ba7b3986fae071b727bbc09f6e9b354e8b9a Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 5 May 2025 15:16:09 -0300 Subject: [PATCH] Bug 39837: Add definition in swagger --- .../swagger/definitions/vendor_interface.yaml | 31 +++++++++++++++++++ api/v1/swagger/swagger.yaml | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 api/v1/swagger/definitions/vendor_interface.yaml diff --git a/api/v1/swagger/definitions/vendor_interface.yaml b/api/v1/swagger/definitions/vendor_interface.yaml new file mode 100644 index 00000000000..f23b6629140 --- /dev/null +++ b/api/v1/swagger/definitions/vendor_interface.yaml @@ -0,0 +1,31 @@ +--- +type: object +properties: + vendor_interface_id: + description: Internally assigned vendor interface identifier + type: integer + vendor_id: + description: Internally assigned vendor identifier + type: integer + type: + description: Type of the interface, authorised value VENDOR_INTERFACE_TYPE + type: string + name: + description: Name of the interface + type: string + uri: + description: URI of the interface + type: string + login: + description: Login to be used for the interface + type: string + password: + description: Hashed password + type: string + account_email: + description: Account email + type: string + notes: + description: Interface notes + type: string +additionalProperties: false diff --git a/api/v1/swagger/swagger.yaml b/api/v1/swagger/swagger.yaml index 5092aa22da8..fb36579cea9 100644 --- a/api/v1/swagger/swagger.yaml +++ b/api/v1/swagger/swagger.yaml @@ -188,6 +188,8 @@ definitions: $ref: ./definitions/vendor.yaml vendor_alias: $ref: ./definitions/vendor_alias.yaml + vendor_interface: + $ref: ./definitions/vendor_interface.yaml vendor_issue: $ref: ./definitions/vendor_issue.yaml vendors_config: -- 2.49.0