7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
16 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
17 * @license http://framework.zend.com/license/new-bsd New BSD License
18 * @version $Id: Controller.php 16595 2009-07-09 20:26:25Z matthew $
21 /** Zend_Controller_Action */
22 require_once 'Zend/Controller/Action.php';
25 * An abstract class to guide implementation of action controllers for use with
29 * @see Zend_Rest_Route
30 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
31 * @license http://framework.zend.com/license/new-bsd New BSD License
33 abstract class Zend_Rest_Controller
extends Zend_Controller_Action
36 * The index action handles index/list requests; it should respond with a
37 * list of the requested resources.
39 abstract public function indexAction();
42 * The get action handles GET requests and receives an 'id' parameter; it
43 * should respond with the server resource state of the resource identified
46 abstract public function getAction();
49 * The post action handles POST requests; it should accept and digest a
50 * POSTed resource representation and persist the resource state.
52 abstract public function postAction();
55 * The put action handles PUT requests and receives an 'id' parameter; it
56 * should update the server resource state of the resource identified by
59 abstract public function putAction();
62 * The delete action handles DELETE requests and receives an 'id'
63 * parameter; it should update the server resource state of the resource
64 * identified by the 'id' value.
66 abstract public function deleteAction();