zandoan / turing-backend

25 stars 100 forks source link

Response for /orders/{order_id} is not an array #15

Open vishal733 opened 5 years ago

vishal733 commented 5 years ago

Shouldn't the response for /orders/{order_id} be an array of items ordered as part of that array? In the API documentation, the response is mentioned as an object/dictonary.

edertaveiraturing commented 5 years ago

Actually, this endpoint should return an object ORDER, it's correct. To return a list of an 'order' you need to use '/orders/inCustomer'