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
| Endpoint | Method | Description |
|---|---|---|
/api/v1/tenant/navigation/:locale | GET | Navigation tree for a tenant |
/api/v1/tenant/publications/:locale | GET | Publication listings |
/api/v1/countries | GET | Country reference data |
/api/v1/news/:locale | GET | News articles |
/api/v1/image | POST | Image upload and optimization |
/api/v1/user/:id | GET | User 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