InRhythm interview question

Codility: Create a rest API to get order with total items in the order.