support for ordering categories
DmitryEfimenko opened this issue · 0 comments
DmitryEfimenko commented
Implement support for ordering categories.
fetchall
api is supposed to return categories and items withorderNum
field- A new API POST method:
updateCategoryOrderNum
which will take the following payload:
{
categoryId: number;
previousIndex: number;
currentIndex: number;
}
Similar method should be available for sorting items within category.
One corner-case to think about is what happens with orderNum
s of the items of a category that's being deleted (preserving items).