Usage
Route : /api/products
Protected : true
Attributes
id : integer
supplier_reference : string
name : string
ean13 : string
reference : string
Endpoints
Return Products index list
Return details of the Product {id}
PUT | /store |
Required | id, name, reference |
Optional | supplier_reference, ean13 |
Create a Product using request’s body
POST | /{id} |
Required | product_id, name, reference, supplier_reference, ean13 |
Update the Product {id} according to the keys and values given in body
DELETE | /{id} |
Optional | manufacturer: {manufacturer_id} |
Delete the Product {id}. If specified within the body, replace any model’s manufacturer_id using {id} with {manufacturer_id}