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

    • Products

      Use of Route:/api/products Protected:True Attributes Id:Integer Provider_reference:string Name:string Ean13:string Reference:string Product_ids:Array Universal:Boolean Roads Get / Returns the product list Get /{id} Returns details of the product ...
    • Models

      Use of Route:/api/models Protected:True Attributes Name:String Commercial cylinder:Integer Type_id:Integer Description:Translated Manufacturer_id:Integer Url_rewrite:Translated Reference:String Meta_title:Translated Year_Begin:Integer ...
    • 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

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