commit c1ab2ddfb500b3466614e13d3526570243f9fd15 parent 1a139839e99a79af7aabf99b7336fa1893d78e97 Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 4 Aug 2024 22:32:26 +0200 simplify GET /private/categories/ API for SQL sanity: don't return (redundant) description, spa can fetch that itself when needed Diffstat:
| M | core/api-merchant.rst | | | 14 | ++++---------- |
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/core/api-merchant.rst b/core/api-merchant.rst @@ -1785,23 +1785,17 @@ Managing product categories name_i18n?: { [lang_tag: string]: string }; // The products in this category. - products: ProductSummary[]; + products: CategoryProductSummary[]; } - .. ts:def:: ProductSummary + .. ts:def:: CategoryProductSummary - interface ProductSummary { + interface CategoryProductSummary { - // Product ID to use. + // ID of a product in the category. product_id: string; - // Human-readable product description. - description: string; - - // Map from IETF BCP 47 language tags to localized descriptions. - description_i18n?: { [lang_tag: string]: string }; - }