diff --git a/docs/api/routes/supplier/articles.get.md b/docs/api/routes/supplier/articles.get.md index 2739cd4..1624135 100644 --- a/docs/api/routes/supplier/articles.get.md +++ b/docs/api/routes/supplier/articles.get.md @@ -6,7 +6,7 @@ List supplier articles by SKUs Lists article-supplier assignments for the specified supplier (entity ID), optionally filtered by a list of SKUs (matching either article SKU or supplier SKU). -Includes linked article details (name, slug, photos/articlepic, eans/articleean). +Includes linked article details (name, slug, photos, eans). ## Path parameters @@ -51,26 +51,14 @@ List of supplier articles "photos": [ { "sort": 1, - "thumbhash": "…", - "hash": "…", - "thumbw": 1, - "thumbh": 1 - } - ], - "articlepic": [ - { - "sort": 1, - "thumbhash": "…", - "hash": "…", - "thumbw": 1, - "thumbh": 1 + "fullHash": "…", + "thumbW": 1, + "thumbH": 1, + "thumbHash": "…" } ], "eans": [ "…" - ], - "articleean": [ - "…" ] } } diff --git a/docs/api/routes/supplier/articles.post.md b/docs/api/routes/supplier/articles.post.md index c88bfbf..9039837 100644 --- a/docs/api/routes/supplier/articles.post.md +++ b/docs/api/routes/supplier/articles.post.md @@ -6,7 +6,7 @@ Query supplier articles by SKUs (bulk) Queries article-supplier assignments for the specified supplier (entity ID) with a JSON list of SKUs in the request body, avoiding URL length limits for large SKU lists. -Includes linked article details (name, slug, photos/articlepic, eans/articleean). +Includes linked article details (name, slug, photos, eans). ## Path parameters @@ -60,26 +60,14 @@ List of supplier articles "photos": [ { "sort": 1, - "thumbhash": "…", - "hash": "…", - "thumbw": 1, - "thumbh": 1 - } - ], - "articlepic": [ - { - "sort": 1, - "thumbhash": "…", - "hash": "…", - "thumbw": 1, - "thumbh": 1 + "fullHash": "…", + "thumbW": 1, + "thumbH": 1, + "thumbHash": "…" } ], "eans": [ "…" - ], - "articleean": [ - "…" ] } } diff --git a/src/api/openapi.js b/src/api/openapi.js index 15847be..b378b6b 100644 --- a/src/api/openapi.js +++ b/src/api/openapi.js @@ -213,18 +213,18 @@ * nullable: true * SupplierArticlePhoto: * type: object - * required: [sort, thumbhash, hash, thumbw, thumbh] + * required: [sort, fullHash, thumbW, thumbH, thumbHash] * properties: * sort: * type: integer - * thumbhash: + * fullHash: * type: string - * hash: + * thumbW: + * type: integer + * thumbH: + * type: integer + * thumbHash: * type: string - * thumbw: - * type: integer - * thumbh: - * type: integer * SupplierArticleInfo: * type: object * required: [id, sku] @@ -243,18 +243,10 @@ * type: array * items: * $ref: '#/components/schemas/SupplierArticlePhoto' - * articlepic: - * type: array - * items: - * $ref: '#/components/schemas/SupplierArticlePhoto' * eans: * type: array * items: * type: string - * articleean: - * type: array - * items: - * type: string * SupplierArticle: * allOf: * - $ref: '#/components/schemas/ArticleSupplier' diff --git a/src/api/routes/supplier.js b/src/api/routes/supplier.js index 36d3cce..069055a 100644 --- a/src/api/routes/supplier.js +++ b/src/api/routes/supplier.js @@ -349,7 +349,7 @@ export function register(app, basePath = '') { * description: | * Lists article-supplier assignments for the specified supplier (entity ID), * optionally filtered by a list of SKUs (matching either article SKU or supplier SKU). - * Includes linked article details (name, slug, photos/articlepic, eans/articleean). + * Includes linked article details (name, slug, photos, eans). * security: * - cookieAuth: [] * x-markdown: supplier/articles.get.md @@ -412,7 +412,7 @@ export function register(app, basePath = '') { * description: | * Queries article-supplier assignments for the specified supplier (entity ID) with a * JSON list of SKUs in the request body, avoiding URL length limits for large SKU lists. - * Includes linked article details (name, slug, photos/articlepic, eans/articleean). + * Includes linked article details (name, slug, photos, eans). * security: * - cookieAuth: [] * x-markdown: supplier/articles.post.md