On Fri, Apr 26, 2013 at 6:04 AM, Liudas <[email protected]> wrote:
> I would like to provide my own REST-based api, extending
> Zend/Rest/Server.php, as it was in 1 version.

Zend_Rest was removed from ZF2 for several reasons:

- The server was really primarily an RPC-style server that didn't
follow any accepted or acceptable standards.
- The client was build to make consuming the RPC-style server easier.

The solution in ZF2 is:

- Build APIs using the MVC layer. We have tools such as the
AcceptableViewModelSelector, AbstractRestfulController, and, of
course, the rich HTTP support in the Request and Response objects, all
of which make building RESTful APIs possible, if not relatively easy.

- Consume APIs using Zend\Http\Client (or try out Enrico's
ZendService_Api -- https://github.com/ezimuel/ZendService_Api -- which
provides a nice wrapper around the HTTP client to make consuming APIs
simpler).

As Michael Gooden and Daniel Gimenes noted, there are also several
modules available in varying states of development that you can drop
into your application and build on; these tend to simplify API
creation by letting you simply wire up your service layer to the
module in order to expose an API.

I know ZfrRest is being actively developed, and I'm personally close
to releasing a major new revision of PhlyRestfully, which focuses on
delivering Hypermedia Application Language (HAL) JSON support.

--
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to