API Overview

The Gateway API is the central orchestration layer connecting all content sources to the Next.js frontend.

The Gateway is currently scaffolded with only a /health endpoint. The endpoints below are planned and documented in concepts/gateway.md.

Architecture

WordPress Sites (5+)
Payload CMS
CRM
Publications API
Gateway API
Hono
PostgreSQLRedis
Next.js Frontend
App Router

Planned Endpoints

EndpointMethodDescription
/api/v1/tenant/navigation/:localeGETNavigation tree for a tenant
/api/v1/tenant/publications/:localeGETPublication listings
/api/v1/countriesGETCountry reference data
/api/v1/news/:localeGETNews articles
/api/v1/imagePOSTImage upload and optimization
/api/v1/user/:idGETUser profile data

Technology Stack

  • Runtime: Hono on Node.js
  • Database: PostgreSQL (tenants, content, translations)
  • Cache: Redis for response caching
  • Contracts: Shared Zod schemas between Gateway and content sources