Skip to content

Overview

This section provides comprehensive documentation for all API schemas, data transformations, and payload structures used across the platform. These schemas define the contract between services and ensure consistent data flow from Contentful through the Customs Transformer to Rakirura and Kakado.

These schemas define how content is transformed from Contentful Rich Text into structured formats:

  • Rich Text → Content Blocks - Transform Contentful Rich Text into EditorJS-style content blocks with HTML output
  • Articles Schema (Coming Soon) - Complete article payload structure including metadata, content blocks, and related data
  • POIs Schema (Coming Soon) - Points of Interest data structure with location, content, and media information
  • Places Schema (Coming Soon) - Place/destination data structure with comprehensive location and content data

All schemas in this section follow these standards:

  • Block Format: { id: string, type: string, data: object }
  • Field Naming: camelCase for JSON properties
  • ID Generation: Predictable prefixes for debugging and testing
  • contentHtml: Complete HTML with wrapper tags
  • innerHtml: Inner HTML content without wrapper tags (DOM standard)
  • text: Plain text content (where applicable)
  • Backward Compatibility: All schemas maintain compatibility with existing CAPI consumers
  • Performance Parity: New implementations must match or exceed current API response times
  • Testing Coverage: Comprehensive test coverage for all schema transformations
  • Review the specific schema documentation before implementing transformers
  • Use the provided examples for testing and validation
  • Follow migration considerations for backward compatibility
  • These schemas define what content structures are available
  • Rich text capabilities are documented with supported HTML tags
  • Media block types show available layout and presentation options

This documentation is updated as schemas evolve. Last updated: January 2025