Skip to main content
Version: 🚧 Canary

🛍️ 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
  • createProductBatchSchema: Batch creation validation
  • updateProductBatchSchema: Batch update validation
  • deleteProductBatchSchema: Batch deletion validation
  • copyProductBatchSchema: Batch copy validation
  • getProductSchema: Single product retrieval validation
  • deleteProductSchema: Product deletion validation
  • copyProductSchema: Product copy validation
  • findProductsSchema: Product search with filtering and pagination

View Product Schema Blocks →

⚙️ 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

View Product Handler Blocks →

🛣️ Routes

HTTP endpoint definitions for product operations:

  • createProductRoute: POST /products with creation handler
  • createProductBatchRoute: POST /products/batch with batch creation handler
  • getProductRoute: GET /products/:productId with retrieval handler
  • findProductsRoute: GET /products with search and pagination
  • updateProductRoute: PATCH /products/:productId with update handler
  • updateProductBatchRoute: PATCH /products/batch with batch update handler
  • deleteProductRoute: DELETE /products/:productId with deletion handler
  • deleteProductBatchRoute: DELETE /products/batch with batch deletion handler
  • copyProductRoute: POST /products/:productId/copy with copy handler
  • copyProductBatchRoute: POST /products/batch/copy with batch copy handler
  • getProductImageUploadUrlRoute: GET /products/:productId/image-upload-url with signed URL generation

View Product Route Blocks →

🚀 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
  • getProductImageUploadUrlFeature: Product image upload URL generation

View Product Feature Blocks →