How erwinkramer/bank-api works
Main Components
a) API Layer (Multiple Versions)
• BankApi.Service.Beta
• BankApi.Service.Stable
These should be represented as parallel API endpoints with different versioning
b) Core Layer (BankApi.Core)
Three main subdivisions:
• Defaults (Configuration and Builders)
• Implementation (Business Logic)
• DownstreamClients (External API Integration)
c) Orchestration Layer (BankApi.Orchestration)
• .NET Aspire orchestration component
• Service discovery and configuration
d) Infrastructure Components
• Authentication services (JWT, API Key, OpenID)
• Caching system (Hybrid Cache)
• Rate Limiting
• Compliance Engine
• OpenTelemetry monitoring
e) External Systems
• GitHub API (as downstream service)
• Azure services integration
Component Relationships
[Client Applications]
• ↓
[Load Balancer/API Gateway]
• ↓
[API Layer]
• [Beta API Service]
• [Stable API Service]
• ↓
[Core Layer]
• [Defaults]
• Authentication
• Rate Limiting
• Error Handling
• [Implementation]
• Bank Operations
• Teller Operations
• [DownstreamClients]
• GitHub Client
• ↓
[Infrastructure]
• [Aspire Orchestration]
• [OpenTelemetry]
• [Compliance Engine]
• [Caching System]
Technical Details
• ASP.NET Core 9.0 Minimal API framework
• Authentication methods (JWT, API Key, OpenID)
• Health check endpoints
• Rate limiting configuration
• CORS policy
• Gridify integration for data operations
• Kiota-generated clients
Documentation Elements
• Version information for major components
• Compliance certification flows
• Document the main data flows
• Error handling paths