concept zend_rest_server in category php

appears as: Zend_Rest_Server
Zend Framework in Action

This is an excerpt from Manning's book Zend Framework in Action.

All readers of this book will likely be familiar with the POST and GET HTTP request methods, whereas PUT and DELETE are less well known, partly because they’re not often implemented by all HTTP servers. This limitation is reflected in Zend_Rest, because Zend_Rest_Client is able to send all of these request methods but Zend_Rest_Server will only respond to GET and POST.

In listing 12.14, we make a concrete implementation of our interface using queries similar to those from Chapter 6. Note that the database results are returned as an array rather than as the default objects, which would have failed when processed by Zend_Rest_Server. Another thing you may notice is that unlike Zend_XmlRpc_Server, Zend_Rest_Server does not require parameters and return values specified in DocBlocks even though it will use them if provided.