Association of characteristics to a product

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 /features/{id}
Return product and feature associations found matching feature_id {id}

GET /products/{id}
Return product and feature associations found matching product_id {id}

PUT/store
Requiredfeature_id, product_id
Create a product and feature association using request’s body

POST /features/{id}
Requiredproduct_id as an object with current and new properties. Ex : 
  1. "product_id": {
  2.         "current": 25,
  3.         "new": 21
  4.  }
Update the product and feature associations’ matching product_id->current and feature_id {id} and with product_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.  }
Update the product and feature associations’ matching feature_id->current and product_id {id} and with feature_id->new

DELETE /features/{id}
Optionalfeature: {feature_id}
Delete the product and feature  association containing feature {id}. If specified within the body, replace any feature_id using {id} with {feature_id}

DELETE /products/{id}
Optionalproduct: {product_id}
Delete the product and feature association containing product {id}. If specified within the body, replace any product_id using {id} with {feature_value}

    • Related Articles

    • Values of product characteristics

      Usage Route : /api/feature_values Protected : true Attributes id : integer name : translated Endpoints GET / Return feature Values index list GET /{id} Return details of the feature Value {id} PUT /store Required id, name Create a feature Value using ...
    • 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 ...
    • Model characteristics

      Usage Route : /api/specifications Protected : true Attributes id : integer group_id : integer name : translated url_rewrite : translated Endpoints GET / Return Specifications index list GET /{id} Return details of the Specification {id} PUT /store ...
    • Associations of Product Character Values

      Usage Route : /api/feature_associations Protected : true Attributes id : integer feature_id : integer (PUT, DELETE), object (POST) value_id : integer (PUT, DELETE), object (POST) Endpoints GET / Return feature and value associations index list GET ...
    • Groups of model characteristics

      Usage Route : /api/groups Protected : true Attributes id : integer name : translated url_rewrite : translated Endpoints GET / Return Group index list GET /{id} Return details of the Group {id} PUT /store Required id, name Optional url_rewrite Create ...