Products

Products

Use of

Route:/api/products
Protected:True

Attributes

Id:Integer
Provider_reference:string
Name:string
Ean13:string
Reference:string
Product_ids:Array
Universal:Boolean


Roads


Get/
Returns the product list

Get/{id}
Returns details of the product whose ID is {id}

Put/store
Requiredid, name, reference, universal
Optionalsupplier_reference, ean13
Creates a product using the body of the request

Post/{id}
Optionalproduct_id, name, reference, supplier_reference, ean13, status
Updates the product whose ID is {id} based on request's body

Post/
Requiredproduct_ids, status
Changes the status with the value ofStatus for the products whose ID are contained in the array product_ids,This array can only have a maximum of 1000 entries.
The status parameter can only have one of the following values: IndependentUniversalSpecific

Delet/{id}
Delete the product whose ID is {id} and all compatibilities concerning it

    • Related Articles

    • Characteristics products

      Use Road:/api/features Protected:true Attributes id:integer name:translation Roads Get / Returns the list of product characteristics Get /{id} Returns the details of product characteristics whose ID is {id} Put /store Required id, name Creates a ...
    • 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

      Use Road:/api/product_features Protected:true Attributes id:integer feature_id:integer (PUT, DELETE), object (POST) product_id:integer (PUT, DELETE), object (POST) Roads Get / Returns the list of associations of characteristics to products Get ...
    • Associations of Product Character Values

      Use Road:/api/feature_associations Protected:true Attributes id:integer feature_id:integer (PUT, DELETE), object (POST) value_id:integer (PUT, DELETE), object (POST) Roads Get / Returns the list of characteristic associations products and values 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!