Categories
The single, versioned category tree (CategoryTree).
Create a category in the live tree
CreateCategory. Applies to the live tree and publishes a new tree version (CategoryTreePublished). The tree is at most four levels deep and never contains a cycle; siblings never share a name (compared case-insensitively). The category id is minted by the service.
Get the category tree
Returns the categories of the current CategoryTree version, ordered by path (parents before children). Before the first category the tree is version 0 and empty. Not paged (x-pagination-exempt: view): the tree is ONE versioned aggregate, so one response is one consistent snapshot of one version; the tree is at most four levels deep.
Publish the category tree again
PublishCategoryTree. Publishes the live tree under a new version (PUBLISHED to PUBLISHED), for example to re-send it to a consumer. Every category write already publishes; this call changes no category.
Move a category under a new parent
MoveCategory. Replaces the parent of the category; the subtree moves with it. Moving never creates a cycle and never exceeds depth four. Publishes a new tree version. PUT is idempotent by method and takes no Idempotency-Key.
Rename a category
RenameCategory. Replaces the name of the category. Siblings never share a name. The paths of the subtree follow. Publishes a new tree version. PUT is idempotent by method and takes no Idempotency-Key.