From 6eda09efbedcbca86193c0747d009df81fe9590b Mon Sep 17 00:00:00 2001 From: Nico Kroll Date: Fri, 30 Jan 2026 07:45:25 +0100 Subject: [PATCH] More fields and some bugfixes --- src/v2/shop.yaml | 97 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 66 insertions(+), 31 deletions(-) diff --git a/src/v2/shop.yaml b/src/v2/shop.yaml index e6e743a..00d3c93 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 16" + version: "Version 18" servers: - url: "https://musterreifen.com/api/shop" description: "Development server, customers domain" @@ -500,9 +500,21 @@ paths: - "HoleCircle2" - "Offset2" - "HubBoreHole2" + - name: "MaximumNumberOfOptions" + in: "query" + required: false + schema: + type: "integer" + default: 1000 + example: 1000 responses: 200: description: "successful operation" + headers: + Developer-Hint: + schema: + type: "string" + description: "To prevent data intense calls, we may manipulate your request. If so, you get a hint here, what exactly we've done." content: application/json: schema: @@ -666,11 +678,6 @@ paths: responses: 200: description: "successful operation" - headers: - Guid-Shop-Article-Config: - schema: - type: "string" - description: "The ShopArticleConfig which was used to build the response. With this unification the configuration is maybe not precise, but you can show the results in a unified form (columns). Currently it's a response header. In the future we will maybe change this as a field in a response object." content: application/json: schema: @@ -714,11 +721,6 @@ paths: responses: 200: description: "successful operation" - headers: - Guid-Shop-Article-Config: - schema: - type: "string" - description: "The ShopArticleConfig which was used to build the response. With this unification the configuration is maybe not precise, but you can show the results in a unified form (columns). Currently it's a response header. In the future we will maybe change this as a field in a response object." content: application/json: schema: @@ -738,6 +740,13 @@ paths: - $ref: "#/components/parameters/BinaryObjectContentType" - $ref: "#/components/parameters/GuidShopArticle" - $ref: "#/components/parameters/GuidMotorcycleModel" + - name: "GuidShopArticle2" + in: "query" + required: false + schema: + type: "string" + default: null + example: "ebb89e89-8d25-809e-7814-c53b686ae164" responses: 200: description: "successful operation" @@ -1335,6 +1344,7 @@ components: - "Designation" - "Number" - "IsActive" + - "DefaultDeliveryDate" properties: Guid: type: "string" @@ -1356,6 +1366,9 @@ components: type: "number" Longitude: type: "number" + DefaultDeliveryDate: + type: "string" + format: "date" example: Guid: "ebb89e89-8d25-809e-7814-c53b686ae164" Designation: "Zentrale" @@ -1408,9 +1421,16 @@ components: type: "object" required: - "Guid" + - "DesiredAmountOfDirectSearch" + - "DesiredAmountOfComfortSearch" + - "Columns" properties: Guid: type: "string" + DesiredAmountOfDirectSearch: + type: "number" + DesiredAmountOfComfortSearch: + type: "number" Columns: type: "array" items: @@ -1474,34 +1494,44 @@ components: type: "string" GuidVehicleType: type: "string" - Types: + TypeGroups: type: "array" items: type: "object" required: - "Designation" - - "Type" + - "Types" properties: Designation: type: "string" - Type: - type: "string" - enum: - - "MaterialType" - - "VehicleType" - - "Width" - - "Section" - - "Diameter" - - "SpeedIndex" - - "LoadIndex" - - "HoleCount" - - "HoleCircle" - - "Offset" - - "HubBoreHole" - - "Manufacturer" - - "MotorcycleManufacturer" - - "MotorcycleDisplacement" - - "MotorcycleModel" + Types: + type: "array" + items: + type: "object" + required: + - "Designation" + - "Type" + properties: + Designation: + type: "string" + Type: + type: "string" + enum: + - "MaterialType" + - "VehicleType" + - "Width" + - "Section" + - "Diameter" + - "SpeedIndex" + - "LoadIndex" + - "HoleCount" + - "HoleCircle" + - "Offset" + - "HubBoreHole" + - "Manufacturer" + - "MotorcycleManufacturer" + - "MotorcycleDisplacement" + - "MotorcycleModel" Filter: type: "object" required: @@ -1861,6 +1891,7 @@ components: - "Guid" - "GuidCurrency" - "DefaultAmount" + - "DefaultDeliveryDate" - "OneClickPurchase" - "FullTaxPercentage" - "ReducedTaxPercentage" @@ -1886,6 +1917,10 @@ components: DefaultAmount: type: "number" readOnly: true + DefaultDeliveryDate: + type: "string" + format: "date" + readOnly: true OneClickPurchase: type: "boolean" readOnly: true