graph LR
Web_Controllers["Web Controllers"]
Web_DTOs["Web DTOs"]
Web_Controllers -- "uses" --> Web_DTOs
The Web API subsystem forms the external interface layer of the microservice, handling web-specific concerns, and is composed of Web Controllers and Web DTOs.
These are the API endpoints, serving as the primary entry point for external HTTP requests. Following the Hexagonal Architecture's "Adapter" pattern, they translate incoming web requests into calls to the application layer's "ports" (e.g., command/query handlers). In a microservice context, these controllers define the service's public API contract, handling request parsing, validation, and response orchestration.
Related Classes/Methods:
These objects define the explicit data contract for the Web API. They are crucial for ensuring clear and type-safe communication between the client and the microservice. DTOs separate the external API representation from internal domain models, preventing direct exposure of domain logic and providing a stable, versionable interface.
Related Classes/Methods: