Products

Products

Usage

Route : /api/products
Protected : true

Attributes

id : integer
supplier_reference : string
name : string
ean13 : string
reference : string


Endpoints


GET /
Return Products index list

GET /{id}
Return details of the Product {id}

PUT/store
Requiredid, name, reference
Optionalsupplier_reference, ean13
Create a Product using request’s body

POST /{id}
Requiredproduct_id, name, reference, supplier_reference, ean13
Update the Product {id} according to the keys and values given in body

DELETE /{id}
Optionalmanufacturer: {manufacturer_id}
Delete the Product {id}. If specified within the body, replace any model’s manufacturer_id using {id} with {manufacturer_id}


    • Related Articles

    • Characteristics products

      Usage Route : /api/features Protected : true Attributes id : integer name : translated Endpoints GET / Return Features index list GET /{id} Return details of the Feature {id} PUT /store Required id, name Create a product’s Feature using request’s ...
    • Compatibilities

      Route /api/compats Protected true modele_id integer product_id integer year integer GET / Return compatibilities index list GET /modeles/{id} Return compatibilities found matching modele_id {id} GET /products/{id} Return compatibilities found ...
    • Association of characteristics to a product

      Usage Route : /api/product_features Protected : true Attributes id : integer feature_id : integer (PUT, DELETE), object (POST) product_id : integer (PUT, DELETE), object (POST) Endpoints GET / Return product and feature associations index list GET ...
    • Exporting to ElasticSearch

      Usage Route : /api/export Protected : true Endpoints GET / Export all your model/product associations to ElasticSearch. DELETE /delete Empty your ElasticSearch index. Warning : this operation is not reversible!
    • Rules of compatibility

      Usage Route : /api/rules Protected : true Endpoints GET / Return Rules index list GET /{id} Return details of the Rule {id} GET /specification/{id} Return Rules’ index list containing specification {id} GET /feature/{id} Return Rules’ index list ...