Category
· One min read
In the QSC a category tree can be managed. It is possible to change the name and the order of categories.
https://qsc.quasiris.de/api/v1/category/ab/navigation https://qsc.quasiris.de/admin/#/feeding/ab/products
- strategy - passthrough, default, facet
Update
There are 2 possibilities to update the category tree.
- 1.) update the category tree by an existing search with a navigation facet
- 2.) update the category tree programmatically
1.) Update by search
The search with the defined searchCode and the searchQuery is called. The searchCode must be configured in the search and must contain a facet with:
-
id: categories
-
fieldName: category
-
searchQuery
-
searchCode
POST https://qsc.quasiris.de/api/v1/admin/category/merge/facet/ab/navigation
Retrieve
GET https://qsc.quasiris.de/api/v1/category/ab/navigation
- defaultSort - name, count, default
- strategy
- passthrough: the category tree is loaded directly from the configuration, count and the existance of the category is not computed on runtime
- default: just existing categories are returned, the count is computed on runtime
- facet: the tree is computed on every request using a facet