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
Return product and feature associations index list
Return product and feature associations found matching feature_id {id}
Return product and feature associations found matching product_id {id}
PUT | /store |
Required | feature_id, product_id |
Create a product and feature association using request’s body
POST | /features/{id} |
Required | product_id as an object with current and new properties. Ex :
- "product_id": {
- "current": 25,
- "new": 21
- }
|
Update the product and feature associations’ matching product_id->current and feature_id {id} and with product_id->new
POST | /products/{id} |
Required | feature_id as an object with current and new properties. Ex :
- "feature_id": {
- "current": 10,
- "new": 30
- }
|
Update the product and feature associations’ matching feature_id->current and product_id {id} and with feature_id->new
DELETE | /features/{id} |
Optional | feature: {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} |
Optional | product: {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 ...