AME-SM Api
Car Brand: Get all car brand
https://www.ameinsure.com/api/Car_brand/getcarbrand
Post
{
'token' => string, **
search_txt => string (name of brand)
}
'token' => string, **
search_txt => string (name of brand)
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => array (
'id' => Id of model,
'name' => string
)
}
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => array (
'id' => Id of model,
'name' => string
)
}
{
'code' : '0x0000-00000',
'message' : 'Success',
'data' : [
{
'id' : '1',
'name' : 'Alfa Romeo'
},
...
)
}
'code' : '0x0000-00000',
'message' : 'Success',
'data' : [
{
'id' : '1',
'name' : 'Alfa Romeo'
},
...
)
}
Car Brand: Insert car brand
https://www.ameinsure.com/api/Car_brand/insert
Post
{
'token' => string, **
name => string (name of brand) **
}
'token' => string, **
name => string (name of brand) **
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => Id of car brand
}
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => Id of car brand
}
{
'code' : '0x0000-00000',
'message' : 'Success',
'data' : 1
}
'code' : '0x0000-00000',
'message' : 'Success',
'data' : 1
}
Car Brand: Update car brand
https://www.ameinsure.com/api/Car_brand/update
Post
{
'token' => string, **
id => int (id of brand) **
name => string (name of brand) **
}
'token' => string, **
id => int (id of brand) **
name => string (name of brand) **
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => Id of car brand
}
'code' => string (0x0000-00000 when success),
'message' => string,
'data' => Id of car brand
}
{
'code' : '0x0000-00000',
'message' : 'Success',
'data' : 1
}
'code' : '0x0000-00000',
'message' : 'Success',
'data' : 1
}
Car Models: Remove car brand
https://www.ameinsure.com/api/Car_brand/remove
Post
{
'token' => string, **
id => int (id of brand) **
}
'token' => string, **
id => int (id of brand) **
}
{
'code' => string (0x0000-00000 when success),
'message' => string,
}
'code' => string (0x0000-00000 when success),
'message' => string,
}
{
'code' : '0x0000-00000',
'message' : 'Success',
}
'code' : '0x0000-00000',
'message' : 'Success',
}