Skip to content

CrudView should be supported #18

@Marlinc

Description

@Marlinc

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 the CrudViewHelper)
  • \Muffin\Webservice\Query needs to have the contain 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:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions