Closed recidive closed 10 years ago
The REST server already take request query data and pass it directly to the list() method on the type model.
We need to create a hook query(typeName, query, callback) so that modules can "force" filters, for e.g. access control to data.
To invoke the hook we can use application.invoke() which is a method inherited from Prana, and the documentation/source can be found around here:
We need add in a simple query API to allow queries to be made to the REST server.
This is a requirement to be able to set filter for reference fields and list pages (#84) and panels (86).