I have below JSON Data for rest API
{"region_id":"475","city":"city","item":[{"qty":"1","weight":"","price":"10.0000","sku":"test"}]}
and i wann to create api class
I do like this
/**
* @api
* @param string $city
* @param string $region_id
* @param array $item
* @return [].
*/
public function estimate($city,$region_id,$item);
But return Class array does not exist also I use string [] and I get the same error. How I can pass an array as parameters?