I have to create a webservices using zf2 restful controller.
Restfull controller
<?php
namespace Application\Controller;
use Zend\Mvc\Controller\AbstractRestfulController;
use Zend\View\Model\JsonModel;
class JsonController extends AbstractRestfulController
{
public function getList()
{
return new JsonModel(array('data' => "Welcome to the Zend Framework Album API example"));
}
}
How the url is hit to call the getList method.