Ben Ramsey: Supporting PUT & DELETE in the Zend Framework
In his most recent post on his blog, Ben Ramsey talks about his work with ATOM, REST and his thoughts on the Zend_Rest_Server.
Anyone who follows Ben’s blog knows that he’s been working with the Atom Publishing Protocol. He also does a great deal of work with Zend Framework. Recently he wrote a blog post discussing where those two intersect.
I’ve recently been wrapped up in an effort to design and implement a RESTful API using the Atom Protocol for a project at work. We are using the Zend Framework as the underlying framework for the project, so, in order to follow the Atom Protocol, I needed to support the HTTP methods PUT and DELETE. Apache can handle GET and POST easily because the request itself tells Apache the resource to use when processing the request. With PUT or DELETE, the resource identified by the request may not even exist, so Apache needs you to specify a script to process the request.
Ben discusses his thoughts on Zend_Rest_Server and how he had to modify his Apache config file so that Apache could properly handle PUT and DELETE.

Comments