Hello,
I'm currently writing a REST service using CakePHP and I was wondering how can I send an array of item_ids through REST to an action.
class ItemsController extends AppController {
var $components = array('RequestHandler');
var $helpers = array('Text', 'Xml');
function index()
{
}
function create($itemsArr)
{
//handle $itemsArr here and sends data as xml to views.
}
}
I guess my real question is, How will the request look like?
http://mysite/items/create/???
I guess I can pass the values as 1 argument using implode(someSeperator, array)
but is there a better solution?
Thanks in advance