getOrders

@Get(value = "/")
open override fun getOrders(@QueryValue(value = "restaurantId") restaurantId: String?, @QueryValue(value = "customerId") customerId: String?, @QueryValue(value = "status") orderStatus: String?): HttpResponse<GetOrdersResponse>

Handles GET orders/?restaurantId={restaurantId}&customerId={customerId}&status={status}.

Translates the application-layer result into an HTTP response:

  • 200 OK with a list of order DTOs if orders are found

  • 200 OK with an empty list if no orders match the filters

Return

An HTTP response containing a list of order DTOs or an empty list.

Parameters

restaurantId

Optional filter for restaurant identifier.

customerId

Optional filter for customer identifier.

orderStatus

Optional filter for order status.