Endpoint
You can perform the following requests:
Endpoint
/products/
Request type | Description |
---|---|
GET | Retrieve an array with all the products in the database. We suggest you to use it only for development purposes. |
POST | Send an array of JSON objects, where each object contains the information of a product. |
/products/{id}
Request type | Description |
---|---|
GET | Retrieve a JSON containing the information of the product where the product id is the one sent in the request. |
PATCH | Update 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. |
DELETE | Delete the product whose id is passed in the request. |