Associations of Product Character Values

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/features/{id}
Returns associations of product characteristics and found values whose feature_id is {id}

Get/values/{id}
Returns associations of product characteristics and found values whose value_id is {id}

Put/store
Requiredfeature_id, value_id
Creates an association between a product characteristic and a value using the body of the request

Post/values/{id}
Requiredfeature_id as an object with current, new and rule properties. The rule property only accepts replace or nothing.
Ex. :
  1. "feature_id": {
  2. "current":20,
  3. "new":30,
  4. "rule":"replace" // only accepts "replace" or "nothing"
  5. }
Updates the association between product characteristics and value whose value_id is {id} and whose feature_id is {id}feature_id.currentby replacingfeature_id.currentbyfeature_id.new
The update follows the rule specified infeature_id.ruleif the new association were to generate a duplicate: whetherfeature_id.ruleisreplacethen we remove all duplicates to keep only one entry otherwise,iffeature_id.ruleisnothingthen we do not update.

Post/features/{id}
Requiredvalue_id as an object with current and new properties. Ex:
  1. "value_id": {
  2. "current":51,
  3. "new":21
  4. }
Updates the combination of product characteristics and value whose feature_id is {id} and value_id isvalue_id.currentby replacingvalue_id.currentbyvalue_id.new

Delete/features/{id}
Optional{feature_id}
Removes value and product character associations whose feature_id is {id}. If specified, instead of deleting replaces the feature_id of all associations found by {feature_id}.

Delete/values/{id}
Optional{value_id}
Removes value and product character associations whose value_id is {id}. If specified, instead of deleting replaces the value_id of all associations found by {value_id}.

    • Related Articles

    • Values of product characteristics

      Use Road:/api/feature_values Protected:true Attributes id:integer name:translation Roads Get / Returns the list of product characteristic values Get /{id} Returns details of the product characteristic value of ID {id} Put /store Required id, name ...
    • 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 ...
    • 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 ...
    • 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!
    • 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 ...