Zend Framework Archives - Soliant


Leveraging API dispatches from RPC in Apigility

Apigility provides a good resource-based API but when you need more data than a resource provides it's time for custom RPC dispatches. Apigility RPC provides a controller which returns an array which is transformed to JSON. To call an API controller then modify its response you need to dispatch the controller from the RPC controller, render the HalJson resonse, then…
Tom Anderson
December 16, 2013