I’m currently looking into a way to split my frontend and backend on seperate servers. The communication between the frontend and backend has to be handled by a REST webservice from the backend. The current REST extension look very complete and interesting, but I can’t seem to find any implementation with relations.
In short, is there a way to let REST be capable of returning a request like:
$model=User::model()->with(‘posts’)->find($criteria);
Currently I am thinking about using the ActiveResource extension for the frontend and FreshRest for the backend. FreshRest seems to be able to handle some relations via the scope parameter.
I feel like there is an easy way to solve my problem. Any help would be appreciated ![]()
(can’t use links to the extensions, since it is my first post on this forum)
Edit: Reading some more about REST, it might be better for me to create a SOAP webservice on which my controllers are located right?