Models

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
Meta_description:Translated
Year_end:Integer
Meta_keywords:Translated
Technical cylinder:Float
Id_type:Integer
Start_date:Date
Id_manufacturer:Integer
End_date:Date
Action:String
Size:Integer
Offset:Integer
Limitation:Integer


Roads


Get/
Returns the list of models

Get/list
Optional
Offset, limit
Available only for keys with adequate permission. Returns a simplified list of models and allows you to paginate thanks to settingsOffset and Limit.

Get/{id}
Returns details of the model whose ID is {id}

Get/url/{url_rewrite}
Returns details of the model whose rewritten URL is {url_rewrite}

Put/store
Requiredid, name, type_id, manufacturer_id
Optionalyear_begin, year_end, technical_cylinder, commercial_ cylinder, description, url_rewrite, meta_title, meta_description, meta_keywords
Creates a template using the request's body

Put/top
Requiredstart_date, end_date, size
Optionalaction, id_type, id_manufacturer
Collects the top templates with the most statistics on the date range provided. The maximum number of records returned is delimited by the option Size. Results can be filtered using optional settings.

Post/{id}
Optionalps_id, name, type_id, manufacturer_id, year_begin, year_end, technical_cylinder, commercial_ cylinder, description, url_rewrite, meta_title, meta_keywords
Updates the model whose ID is {id} based on request's body data.

Delet/{id}
Removes the model whose ID is {id} and all its compatibilities.