Strapi API Gateway
The public application consumes Strapi content through the KHAWI API, not directly.
text
Client
↓
KHAWI API ──reads──► Strapi
↑
Client never calls StrapiThe canonical surface is Content API.
Why
Direct Strapi access would couple the frontend to Strapi's internal API shape and expose an administration surface to the public. Proxying gives:
- Controlled exposure — only published, public content crosses the boundary
- Validation — malformed content degrades to a fallback instead of reaching clients
- Caching — content changes rarely and is read constantly
- A stable contract — a Strapi upgrade or restructure does not break clients
- Reduced coupling — clients depend on our contract, not on Strapi's
- One audit point — content access is auditable in one place
Policy is not content
Content endpoints serve FAQs, guides, pages, announcements and reference data.
They do not serve active policy. Policy is authored in Strapi as a draft, activated through the Admin API as a policy_version in PostgreSQL, and evaluated by the Compliance Engine. Mixing the two would let a CMS read return something a client could mistake for the rules currently governing it.
Degradation
A Strapi outage degrades content rendering only. Journeys, bookings and compliance decisions are unaffected.
