-
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\RepositoryInterface
Make search manager use RepositoryInterface instance instead of Table. FriendsOfCake/search#79 -
\Search\Model\Behavior\SearchBehavior
needs to be somehow compatible with\Muffin\Webservice\Model\Endpoint
classes. 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\Callback
filter. - CrudView should use the general entity interface:
\Cake\Datasource\EntityInterface
(for example in theCrudViewHelper
) -
\Muffin\Webservice\Query
needs to have thecontain
method -
\Muffin\Webservice\Endpoint
requires 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\AssociationInterface
to describe a general association between twoRepositoryInterface
implementations. [RFC] [3.3] Add support for associations in custom datasource cakephp/cakephp#9002.