Orders endpoint

Endpoint

/orders/

Request typeDescription
GETRetrieve an array with all the products in the database. We suggest you to use it only for development purposes.
POSTSend an array of JSON objects, where each object contains the information of an order.

/orders/{id}

Request typeDescription
GETRetrieve a JSON containing the information of the order where the order id is the one sent in the request.
PATCHUpdate the order whose id is passed in the request. Send as body of the request a JSON containing all the order information, not only the changed fields.
POSTDelete the order whose id is passed in the request