In this chapter, we used the REST classes provided with the Zend Framework to implement the sample library system. The design of the service and client was covered along with the MVC concepts supported by the Zend Framework.
We discussed how resources map to the Model in MVC. Then we also discussed how HTTP verbs, when combined with resource URIs, map to the Controller in MVC.
We discussed how to combine Zend_Rest_Server
with Zend_Controller
to implement the business operations of the service.
We also explored how to use Zend_Rest_Client
class to consume the services. And we implemented a sample web-based application using REST client to consume the REST service.
In the next chapter, we will discuss how to debug and troubleshoot REST services and clients.