I would like to add multiple records to a single table in a single HTTP post. For single record, the HTTP post will look something like "http://127.0.0.1/app/model/api_add/data[Model][Field1]". How will the HTTP Post URL look like for adding multiple records? I am using cakephp 2.4.5
Below is the add()
in the Controller:
public function add()
{
if ($this->request->is('post'))
{
$this->Model->create();
$this->Model->saveAll($this->request->data);
}
}