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