From 04af31e7939126ce8bd5cecebd94fcd30d5081d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=93=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=D0=B5=D0=B2?= Date: Tue, 24 Jun 2025 16:50:36 +0300 Subject: [PATCH] Fix api --- eurostyle-server-api-requirements.md | 64 +++++++++++++++++++++++++--- 1 file changed, 59 insertions(+), 5 deletions(-) diff --git a/eurostyle-server-api-requirements.md b/eurostyle-server-api-requirements.md index 8c79c0b..d0b8609 100644 --- a/eurostyle-server-api-requirements.md +++ b/eurostyle-server-api-requirements.md @@ -475,7 +475,19 @@ part_type - Перечисление (Enum) "external_key": "pi-002" } ], - "parts": [ + "required_parts": [ + { + "line": 1, + "external_key": "part-001", + "count": 10 + }, + { + "line": 2, + "external_key": "part-002", + "count": 10 + } + ], + "spent_parts": [ { "line": 1, "external_key": "part-001", @@ -512,7 +524,16 @@ part_type - Перечисление (Enum) "warehouse_key": "UPDATED-warehouse-001", "brand_key": "brand-001", "master_key": "master-001", - "parts": [ + "required_parts": [ + { + "line": 1, + "part_type": 1, + "count": 100, + "part_key": "material-1", + "part_name": "Деталь" + } + ], + "spent_parts": [ { "line": 1, "part_type": 1, @@ -589,7 +610,19 @@ part_type - Перечисление (Enum) "external_key": "pi-002" } ], - "parts": [ + "required_parts": [ + { + "line": 1, + "external_key": "part-001", + "count": 10 + }, + { + "line": 2, + "external_key": "part-002", + "count": 10 + } + ], + "spent_parts": [ { "line": 1, "external_key": "part-001", @@ -663,7 +696,19 @@ part_type - Перечисление (Enum) "external_key": "pi-002" } ], - "parts": [ + "required_parts": [ + { + "line": 1, + "external_key": "part-001", + "count": 10 + }, + { + "line": 2, + "external_key": "part-002", + "count": 10 + } + ], + "spent_parts": [ { "line": 1, "external_key": "part-001", @@ -700,7 +745,16 @@ part_type - Перечисление (Enum) "warehouse_key": "UPDATED-warehouse-001", "brand_key": "brand-001", "master_key": "master-001", - "parts": [ + "required_parts": [ + { + "line": 1, + "part_type": 1, + "count": 100, + "part_key": "material-1", + "part_name": "Деталь" + } + ], + "spent_parts": [ { "line": 1, "part_type": 1,