TechChorus Blog: Create RESTful Applications Using The Zend Framework

TechChorus is technology blog maintained by Sudheer Satyanarayana. On of recent posts written by Sudheer is quick start Zend_Rest tutorial.

The Zend Framework 1.9 release added a new feature – Zend_Rest_Controller. Zend_Rest_Controller and Zend_Rest_Route classes go hand in hand. In the previous versions of the Zend Framework, we have had the Zend_Rest_Server component. We still have. Since Zend_Rest_Server provides an RPC like component violating the REST architectural constraint, it is likely to be deprecated in the future versions of the Zend Framework.

Sudheer shows how to use new Zend_Rest classes to create simple REST service. Although controller’s actions are hardcoded, the tutorial itself purpose is just to show how to create and call a REST service. Don’t forget to read comments too, especially from Matthew Weier O’Phinney about HTTP response codes.

  • Share/Bookmark