Model characteristics

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
Requiredid, group_id, name
Optionalurl_rewrite
Create a Specification using request’s body

POST /{id}
Optionalps_id, group_id, name, url_rewrite
Update the Specification {id} according to the keys and values given in body

DELETE /{id}
Optionalspecification: {specification_id}
Delete the Specification {id}. If specified within the body, replace any association between a model and this specification_id using {specification_id}.

    • Related Articles

    • 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 ...
    • 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 ...
    • 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 ...
    • 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 ...
    • 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!