i want a clear answer about how using API to retrieve products and categories from their tables in DB and present them as a tree hierarchy.
i try to understand the widget code, but unfortunately i can not.
i read the documentation and searched over the internet, but i can not find any recourse that is easy to understand.
i find that there is a REST API, but i can not find how to use this API in my code.
so i need a CLEAR way to understand the suitable API for my request.
Version (include the version you are using, if applicable):