Compatibilities

Compatibilities

Route

/api/compats

Protected

true



modele_id

integer

product_id

integer

year

integer



GET

/

Return compatibilities index list


GET

/modeles/{id}

Return compatibilities found matching modele_id {id}


GET

/products/{id}

Return compatibilities found matching product_id {id}


PUT

/store

Required

modele_id, product_id

Optional

year

Create a compatibility using request’s body


POST

/modeles/{id}

Required

product_id

Update the compatibility modele_id {id} according to the keys and values given in body


POST

/products/{id}

Required

modele_id

Update the compatibility product_id {id} according to the keys and values given in body



DELETE

/

Required

modele_id, product_id

Optional

year

Delete the compatibility with given modele_id and product_id. If specified, only deletes records for the year contained within the request’s body.


DELETE

/modeles/{id}

Optional

year

Delete the compatibility with modele_id {id}. If specified, only deletes records for the year contained within the request’s body.


DELETE

/products/{id}

Optional

year

Delete the compatibility with product_id {id}. If specified, only deletes records for the year contained within the request’s body.

    • Related Articles

    • 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!
    • Rules of compatibility

      Usage Route : /api/rules Protected : true Endpoints GET / Return Rules index list GET /{id} Return details of the Rule {id} GET /specification/{id} Return Rules’ index list containing specification {id} GET /feature/{id} Return Rules’ index list ...
    • Export to PrestaShop

      Utilisation Route : /api/export_to Protected : true Attributs scope : string (case sensitive) onlyFor : integer startAt : integer onlyMissing : boolean Routes PUT /prestashop Required scope Optional startAt, onlyFor, onlyMissing Exports data to ...
    • 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 ...
    • 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 ...