MicronautOrderController
@Controller(value = "/orders/")
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
Link copied to clipboard
@Post(value = "advance")
Handles POST orders/advance.
Link copied to clipboard
@Delete(value = "{id}")
Handles DELETE orders/{id}.
Link copied to clipboard
@Get(value = "{id}")
Handles GET orders/{id}.
Link copied to clipboard
@Post(value = "place")
Handles POST orders/place.
Link copied to clipboard
@Patch(value = "delivery")
Handles PATCH orders/delivery.
Link copied to clipboard
@Patch(value = "items")
Handles PATCH orders/items.
Link copied to clipboard
@Patch(value = "takeaway")
Handles PATCH orders/takeaway.