Association of characteristics to a product

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/features/{id}
Returns associations of product characteristics found from a Character ID {id}

Get/products/{id}
Returns associations of product characteristics found from a Product ID {id}

Put/store
Requiredfeature_id, product_id
Creates an association between a product and a character using the body of the request

Post/features/{id}
Requiredproduct_id as an object with current and new properties. Ex:
  1. "product_id": {
  2. "current": 25,
  3. "new": 21
  4. }
Updates the association between a product and a character based on the product character whose ID is {id} and replaces the product whose ID is {id}product_id.currentby the one whose ID isproduct_id.new

Post/products/{id}
Requiredfeature_id as an object with current and new properties. Ex:
  1. "feature_id": {
  2. "current": 10,
  3. "new": 30
  4. }
Updates the association between a product and a character from the product whose ID is {id} and replaces the product character whose ID is {id}feature_id.currentby the one whose ID isfeature_id.new

Delete/features/{id}
Optionalfeature: {feature_id}
Removes character associations with a product when the product character ID is {id}. If specified, replace the character ID produced of each of these associations with {feature_id}.

Delete/products/{id}
Optionalproduct: {product_id}
Removes character associations with a product when the product ID is {id}. If specified, replace the product ID of each of these associations with {product_id}.

    • 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 ...
    • 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 ...
    • 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 ...
    • Model characteristics

      Use Road:/api/specifications Protected:true Attributes id:integer group_id:integer name:translation url_rewrite:translation Roads Get / Return the list of specifications Get /{id} Returns the details of the specification corresponding to the ID {id} ...
    • Rules of compatibility

      Use Road:/api/rules Protected:true Roads Get / Returns the list of existing compatibility rules Get /{id} Returns the details of the rule whose ID is {id} Get /specification/{id} Returns the list of rules containing model carcatetristics whose ID is ...