2010年1月19日星期二

Re: [fw-webservices] Adding rest routes to existing controllers

I think that sounds like a reasonable approach. So assuming existing
controllers, e.g.,

ArticleController::authorAction()
ArticleController::dateAction()

You would implement the Rest_Route controller actions? e.g.,

ArticleController::indexAction()
ArticleController::getAction()
ArticleController::postAction()
ArticleController::putAction()
ArticleController::deleteAction()

?

-L

On Tue, Jan 19, 2010 at 8:38 AM, php_will <will@williamelworthy.com> wrote:
>
> Hello Everyone.
>
> I am implementing a new REST web service for an application using a modular
> zend framework and Zend_Rest_Route.
>
> The idea has come up that we could add the Rest methods to the end of our
> application controllers in each module.
>
> Can anyone see the possible disadvantages/advantages to this?
> Any input would be most appreciated.
>
> Thanks in advance.
> Will
> --
> View this message in context: http://n4.nabble.com/Adding-rest-routes-to-existing-controllers-tp1017595p1017595.html
> Sent from the Zend Web Services mailing list archive at Nabble.com.
>

没有评论: