Endpoint

You can perform the following requests:

Endpoint

/products/

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 a product.

/products/{id}

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