Update test command for api #172
This commit is contained in:
parent
2f30d0c7c3
commit
730a94f371
1 changed files with 7 additions and 7 deletions
|
|
@ -39,8 +39,9 @@ class TestCommand extends Command
|
|||
// test
|
||||
$api->get('/capi/test');
|
||||
|
||||
/*
|
||||
// TODO: shift this out of the bundle, since it's project specific
|
||||
|
||||
|
||||
// warranty register
|
||||
$serial = 'AJ34LJADR12134LKJL';
|
||||
$plate_num = 'XEN918';
|
||||
|
|
@ -48,22 +49,23 @@ class TestCommand extends Command
|
|||
'serial' => $serial,
|
||||
'plate_number' => $plate_num,
|
||||
'warranty_class' => 'private',
|
||||
/*
|
||||
'battery_model_id' => 438,
|
||||
'battery_size_id' => 1171,
|
||||
*/
|
||||
'sku' => 'WMEB24CB-CPN00-LX',
|
||||
'date_purchase' => '20181001',
|
||||
'date_expire' => '20191001',
|
||||
];
|
||||
$api->post('/capi/warranties', $params);
|
||||
*/
|
||||
|
||||
// get all warranties
|
||||
$api->get('/capi/warranties');
|
||||
|
||||
|
||||
/*
|
||||
|
||||
// warranty find
|
||||
$api->get('/capi/warranties/' . $serial);
|
||||
*/
|
||||
|
||||
// warranty claim
|
||||
$id = 86811;
|
||||
|
|
@ -73,11 +75,8 @@ class TestCommand extends Command
|
|||
];
|
||||
$api->post('/capi/warranties/' . $id . '/claim', $params);
|
||||
|
||||
/*
|
||||
|
||||
// plate warranty
|
||||
$api->get('/capi/plates/' . $plate_num . '/warranties');
|
||||
*/
|
||||
|
||||
// battery
|
||||
$api->get('/capi/battery_brands');
|
||||
|
|
@ -87,5 +86,6 @@ class TestCommand extends Command
|
|||
// vehicle
|
||||
// $api->get('/capi/vehicle_manufacturers');
|
||||
// $api->get('/capi/vehicles');
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue