Expand get-menu #39

Closed
opened 2026-03-31 07:40:16 +00:00 by goc_daniel · 1 comment
Owner

Endpoints:

  • /get-menu: returns a tree of categories expanded starting from some root category
  • /get-breadcrumb: given index of root and some further child, returns breadcrumb.

Also, in settings, return the default root category (available in database) for given language(s).

Endpoints: - /get-menu: returns a tree of categories expanded starting from some root category - /get-breadcrumb: given index of root and some further child, returns breadcrumb. Also, in settings, return the default root category (available in database) for given language(s).
Author
Owner

/get-menu changed to /get-category-tree: added new error (if category tree has circular dependencies, in reality it is caused by wrong root id, and it prevents stack overflow)
/get-breadcrumb returns breadcrumb, in order starting from root category.

added CATEGORY_TREE_ROOT_ID into /settings endpoint. This value is hardcoded as 2, and is defined in constdata.

/get-menu changed to /get-category-tree: added new error (if category tree has circular dependencies, in reality it is caused by wrong root id, and it prevents stack overflow) /get-breadcrumb returns breadcrumb, in order starting from root category. added CATEGORY_TREE_ROOT_ID into /settings endpoint. This value is hardcoded as 2, and is defined in constdata.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: goc_daniel/b2b#39