Types

Types

Use

Road:/api/types
Protected:true

Attributes

id:integer
meta_title:translation
name:translation
meta_description:translation
active:boolean
meta_keywords:translation
description:translation
type_id:integer
url_rewrite:translation

Roads

Get/
Returns the list of types

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

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

Get/manufacturers/{id}
Returns manufacturer details attached to the type whose ID is {id}

Put/store
Requiredid, name
Optionaldescription, url_rewrite, meta_title, meta_description, meta_keywords
Create a type using the body of the request

Post/{id}
Requiredps_id, active, name, description, url_rewrite, meta_title, meta_description, meta_keywords
Updates the type whose ID is {id} based on the keys and values given in the body of the request

Delete/{id}
Optionaltype: {type_id}
Removes the type whose ID is {id}. If specified, replace the type deleted with the type given in parameter{type_id} for all models using the old one.