getOrderDetails

@Get(value = "{id}")
open override fun getOrderDetails(@PathVariable id: String): HttpResponse<GetOrderDetailsResponse>

Handles GET orders/{id}.

Translates the application-layer result into an HTTP response:

  • 200 OK with the order DTO if the order is found

  • 404 Not Found if the order does not exist

Return

An HTTP response containing the order DTO or a not-found status.

Parameters

id

The order identifier received from the path.