About This Architecture
Multi-layer web app architecture with Customer and Company pages sharing a unified GET /get_comp API endpoint. The backend API layer orchestrates requests to three database tables (customer, address, comp) via foreign key relationships, while GET /get_customer additionally calls external third-party APIs and SMS services. This design demonstrates API reuse and separation of concerns across frontend, backend, and data layers. Fork and customize this diagram on Diagrams.so to model your own multi-tenant or multi-page system with shared endpoints. The shared API pattern reduces code duplication and simplifies maintenance across related features.