Skip to main content
Version: 0.5.0 (Previous)

🏷️ Attribute Blocks

Attribute blocks provide comprehensive functionality for managing attribute sets and key-value pairs in Nodeblocks applications. These blocks handle attribute creation, updates, retrieval, and search operations with flexible data structures.


🎯 Overview

Attribute blocks are designed to:

  • Manage attribute sets with key-value pair structures
  • Support flexible data with dynamic attribute definitions
  • Enable attribute search and filtering capabilities
  • Provide CRUD operations for attribute lifecycle management
  • Support pagination for large attribute collections

📦 Block Types

🔍 Schemas

JSON Schema definitions for attribute data validation:

  • attributesSchema: Base attribute set structure
  • createAttributesSchema: Attribute set creation validation
  • updateAttributesSchema: Attribute set name updates
  • getAttributeSchema: Attribute set retrieval
  • deleteAttributeSchema: Attribute set deletion
  • findAttributesSchema: Attribute search with filtering and pagination

View Attribute Schema Blocks →

⚙️ Handlers

Core business logic for attribute operations:

  • createAttributeGroup: Attribute group creation
  • getAttributeGroupById: Attribute group data retrieval
  • findAttributeGroups: Attribute group search and filtering
  • updateAttributeGroup: Attribute group updates
  • deleteAttributeGroup: Attribute group deletion

View Attribute Handler Blocks →

🛣️ Routes

HTTP endpoint definitions for attribute operations:

  • createAttributeRoute: POST /attributes with creation handler
  • getAttributeRoute: GET /attributes/:attributeId with retrieval handler
  • findAttributesRoute: GET /attributes with search and pagination
  • updateAttributeRoute: PATCH /attributes/:attributeId with update handler
  • deleteAttributeRoute: DELETE /attributes/:attributeId with deletion handler

View Attribute Route Blocks →

🚀 Features

Complete attribute management features combining schemas, routes, and handlers:

  • createAttributeFeature: Attribute group creation with validation and routing
  • getAttributeFeature: Attribute group retrieval with access control
  • findAttributesFeature: Attribute group search with filtering and pagination
  • updateAttributeFeature: Attribute group updates with validation and access control
  • deleteAttributeFeature: Attribute group deletion with proper validation and cleanup

View Attribute Feature Blocks →