🛍️ Product Blocks
Product blocks provide comprehensive functionality for product management in Nodeblocks applications. These blocks handle product lifecycle operations including creation, catalog management, and inventory tracking.
🎯 Overview
Product blocks are designed to:
- Manage product catalog with full CRUD operations
- Handle product attributes and variations
- Provide product validation and business rules
- Support inventory management and tracking
- Enable product administration with comprehensive controls
📦 Block Types
🔍 Schemas
JSON Schema definitions for product data validation:
- productSchema: Base product entity structure
- createProductSchema: Product creation validation
- updateProductSchema: Product update validation
⚙️ Handlers
Core business logic for product operations:
- createProduct: Product creation
- getProductById: Product data retrieval
- updateProduct: Product updates
- deleteProduct: Product deletion
- findProducts: Product search and filtering
🛣️ Routes
HTTP endpoint definitions for product operations:
- createProductRoute: POST
/products
with creation handler - createProductBatchRoute: POST
/products/batch
with batch creation handler - getProductRoute: GET
/products/:id
with retrieval handler - findProductsRoute: GET
/products
with search and pagination - updateProductRoute: PUT
/products/:id
with update handler - updateProductBatchRoute: PUT
/products/batch
with batch update handler - deleteProductRoute: DELETE
/products/:id
with deletion handler - deleteProductBatchRoute: DELETE
/products/batch
with batch deletion handler - copyProductRoute: POST
/products/:id/copy
with copy handler - copyProductBatchRoute: POST
/products/batch/copy
with batch copy handler
🚀 Features
Complete product management features combining schemas, routes, and handlers:
- createProductFeature: Product creation with schema validation and routing
- createProductBatchFeature: Batch product creation with schema validation and routing
- getProductFeatures: Product retrieval for getting individual product data
- findProductsFeatures: Product search with filtering and pagination
- editProductFeatures: Product update with schema validation and routing
- editProductBatchFeatures: Batch product update with schema validation and routing
- deleteProductFeatures: Product deletion with routing
- deleteProductBatchFeatures: Batch product deletion with schema validation and routing
- copyProductFeatures: Product copying with routing
- copyProductBatchFeatures: Batch product copying with schema validation and routing
🔗 Related Documentation
- Product Schema Blocks - Product data validation and contracts
- Product Handler Blocks - Product business logic functions
- Product Route Blocks - HTTP endpoint definitions
- Product Feature Blocks - Complete product management features