- 
                Notifications
    
You must be signed in to change notification settings  - Fork 43
 
Open
Description
It should be possible to use CrudView with the Webservice plugin. For this quite a few things have to happen.
Some of the things that need to change:
-  FoC/Search should use the general repository interface: 
\Cake\Datasource\RepositoryInterfaceMake search manager use RepositoryInterface instance instead of Table. FriendsOfCake/search#79 -  
\Search\Model\Behavior\SearchBehaviorneeds to be somehow compatible with\Muffin\Webservice\Model\Endpointclasses. Possibly by using traits. Interesting PR: Could we implement addBehavior()? cakephp/elastic-search#83. -  Search Filter classes need to be less dependent on query expressions (at least simple cases like 
\Search\Model\Filter\Value). Currently the only way to use Search is to use the\Search\Model\Filter\Callbackfilter. -  CrudView should use the general entity interface: 
\Cake\Datasource\EntityInterface(for example in theCrudViewHelper) -  
\Muffin\Webservice\Queryneeds to have thecontainmethod -  
\Muffin\Webservice\Endpointrequires some notion of defining associations. 
It might be necessary to change the CakePHP core to add more methods to specific interfaces. Some of the things that need to be made:
-  
\Cake\Datasource\AssociationInterfaceto describe a general association between twoRepositoryInterfaceimplementations. [RFC] [3.3] Add support for associations in custom datasource cakephp/cakephp#9002.