Backend
Boundaries
The API is the controlled application gateway. It owns all operational behaviour.
/api/v1/auth
/api/v1/users
/api/v1/drivers
/api/v1/vehicles
/api/v1/journeys
/api/v1/ride-requests
/api/v1/matches
/api/v1/bookings
/api/v1/contributions
/api/v1/ratings
/api/v1/incidents
/api/v1/notifications
/api/v1/compliance
/api/v1/admin
/api/v1/regulatoryThere is no /api/routes, /api/requests or /api/trips. Those names describe a dispatch model the platform does not implement — see API Overview.
What the API owns
Authentication, authorization, transactional workflows, matching orchestration, compliance orchestration, data access, audit and integrations.
What Strapi owns
Content, reference data and policy authoring:
- pages, FAQs, help articles, safety guides, announcements, legal content
- organisations, communities, commute hubs, service areas, zones
- vehicle types, relationship types, journey categories
- pilot configuration
- compliance policies, rules, risk signals, eligibility rules, contribution policies
- media
What Strapi does not own
Authentication, users, driver and vehicle verification, journeys, journey stops, route tracking, ride requests, matches, bookings, contributions, ratings, incidents, live locations, compliance decisions, audit events.
Strapi must not become the live transaction source of truth for journeys, requests, matches, bookings, locations or compliance decisions.
This is the single most important boundary in the backend. If Strapi owns compliance decisions, then a CMS content edit can change the outcome of a live decision, and the audit trail stops being a record of anything.
The distinction is authoring versus activation. Strapi authors a rule; the API activates a policy_version in PostgreSQL and evaluates against it. The active version is a fact recorded with every decision.
Data
PostgreSQL/PostGIS for operational and spatial data. Redis for cache, queues and realtime support.
Responsibility
No component silently becomes the source of truth for another layer's responsibilities.
