From 68eca53428ee85c51eec5da7aee6dd0413387ebf Mon Sep 17 00:00:00 2001 From: Nico Kroll Date: Fri, 17 Oct 2025 09:41:45 +0200 Subject: [PATCH] Added Motorcycle-Data --- src/v2/shop.yaml | 80 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/src/v2/shop.yaml b/src/v2/shop.yaml index 41a2c76..99a9789 100644 --- a/src/v2/shop.yaml +++ b/src/v2/shop.yaml @@ -1,7 +1,7 @@ openapi: 3.0.0 info: title: "TyrePro-API, Shop" - version: "Version 14" + version: "Version 15" servers: - url: "https://musterreifen.com/api/shop" description: "Development server, customers domain" @@ -750,6 +750,47 @@ paths: $ref: "#/components/responses/GenericError" security: - SessionScheme: [] +# MotorcycleDetails + /ShopArticleMotorcycleInformations: + get: + tags: + - "MotorcycleDetails" + parameters: + - $ref: "#/components/parameters/BinaryObjectContentType" + - $ref: "#/components/parameters/GuidShopArticle" + - $ref: "#/components/parameters/GuidMotorcycleModel" + responses: + 200: + description: "successful operation" + content: + application/json: + schema: + type: "array" + items: + $ref: "#/components/schemas/ShopArticleMotorcycleInformation" + default: + $ref: "#/components/responses/GenericError" + security: + - SessionScheme: [] + /ShopArticleMotorcycles: + get: + tags: + - "MotorcycleDetails" + parameters: + - $ref: "#/components/parameters/GuidShopArticle" + responses: + 200: + description: "successful operation" + content: + application/json: + schema: + type: "array" + items: + $ref: "#/components/schemas/ShopArticleMotorcycle" + default: + $ref: "#/components/responses/GenericError" + security: + - SessionScheme: [] # Calculation /CalculationProfiles: get: @@ -1653,6 +1694,43 @@ components: DeliveryDate: type: "string" format: "date" + ShopArticleMotorcycleInformation: + type: "object" + required: + - "Notes" + properties: + CertificateFile: + $ref: "#/components/schemas/DbBlob" + Notes: + type: "array" + items: + type: "string" + ShopArticleMotorcycle: + type: "object" + required: + - "GuidMotorcycle" + - "Manufacturer" + - "Model" + - "Type" + properties: + GuidMotorcycleModel: + type: "string" + Manufacturer: + type: "string" + Model: + type: "string" + Type: + type: "string" + DisplacementInCcm: + type: "integer" + PowerInKw: + type: "integer" + ConstructionYearFrom: + type: "integer" + ConstructionYearTo: + type: "integer" + AdditionalDesignation: + type: "string" MaterialType: type: "object" required: