🚀 Category features
Category features are SDK composers, not Express middleware; categoryService mounts the Category features with the required stores and drivers.
Inventory
| Feature | Composed schema(s) | Composed route(s) | Purpose |
|---|---|---|---|
createCategoryFeature | createCategorySchema | createCategoryRoute | Create a category. |
getCategoryFeatures | getCategorySchema | getCategoryRoute | Read one category. |
findCategoriesFeatures | findCategoriesSchema | findCategoriesRoute | List categories. |
editCategoryFeatures | updateCategorySchema | updateCategoryRoute | Update a category. |
enableCategoryStatusFeatures | enableCategorySchema | enableCategoryRoute | Set status to active. |
disableCategoryStatusFeatures | disableCategorySchema | disableCategoryRoute | Set status to inactive. |
editCategoryStatusFeatures | Via enableCategoryStatusFeatures and disableCategoryStatusFeatures | enableCategoryRoute, disableCategoryRoute | Combine both status features. |
deleteCategoryFeatures | deleteCategorySchema | deleteCategoryRoute | Delete a category. |
Details
Each feature is mounted by categoryService. The source definitions below show the exact schema-to-route composition.
createCategoryFeature
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by categoryService or a compatible custom service context.View complete source
getCategoryFeatures
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by categoryService or a compatible custom service context.View complete source
findCategoriesFeatures
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by categoryService or a compatible custom service context.View complete source
editCategoryFeatures
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by categoryService or a compatible custom service context.
Status is deliberately absent from this body schema; use the status features.View complete source
enableCategoryStatusFeatures
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by categoryService or a compatible custom service context.
categoryService mounts it through editCategoryStatusFeatures; custom services may mount it directly.View complete source
disableCategoryStatusFeatures
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by categoryService or a compatible custom service context.
categoryService mounts it through editCategoryStatusFeatures; custom services may mount it directly.View complete source
editCategoryStatusFeatures
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by categoryService or a compatible custom service context.
Composes enableCategoryStatusFeatures and disableCategoryStatusFeatures, rather than schemas or routes directly.View complete source
deleteCategoryFeatures
Implementation
This feature composes the schema and route linked in its inventory row; it is mounted by categoryService or a compatible custom service context.View complete source