MicronautOrderController
Micronaut HTTP controller for the order-service inbound web adapter.
This controller exposes order-related HTTP endpoints and delegates business operations to application inbound ports. It is responsible for:
validating incoming request payloads at the HTTP boundary
mapping DTOs to domain objects and commands
throwing domain/http exceptions handled by ExceptionHandlers
The controller intentionally avoids domain logic so the application and domain layers remain independent from transport concerns.
Functions
Handles POST orders/advance.
Handles DELETE orders/{id}.
Handles GET orders/{id}.
Handles GET orders/?restaurantId={restaurantId}&customerId={customerId}&status={status}.
Handles GET orders/{id}/pay.
Handles POST orders/place.
Handles PATCH orders/delivery.
Handles PATCH orders/items.
Handles PATCH orders/takeaway.