Reference Architecture: OpenAPI Backend
Status: Proposed | Date: 2025-07-28
When to Use This Pattern
Use when building:
- Backend services that other applications consume via API
- Systems requiring clear separation between public and administrative operations
- Services needing auto-generated API documentation
Overview
This template implements OpenAPI-first API services with complete separation between user-facing operations (api.domain) and administrative operations (admin.domain). The separation provides network and authentication isolation for privileged functions.
Core Components
Standard APIs (api.example.com/v1/*): Business operations for authenticated users
Admin APIs (admin.example.com/v1/*): System management for privileged users
The two endpoints use separate authentication realms per ADR 013: Identity Federation Standards, providing network and authentication isolation.
Project Kickoff Steps
- Infrastructure Foundation - Follow ADR 001: Application Isolation and ADR 002: AWS EKS for Cloud Workloads
- API Standards - Follow ADR 003: API Documentation Standards for OpenAPI specification
- Identity Federation - Follow ADR 013: Identity Federation Standards for domain separation
- Edge Protection - Follow ADR 016: Web Application Edge Protection for rate limiting and security
- Database & Secrets - Follow ADR 018: Database Patterns and ADR 005: Secrets Management
- Logging & Monitoring - Follow ADR 007: Centralised Security Logging for audit trails