Wizcorp/express-rested

Search

ronkorving opened this issue · 0 comments

One way we could implement search is this:

GET /rest/collection?foo=bar

The moment we receive a query string on a collection-get that can be parsed to an object, we call resource.matches(obj) on each resource in the collection and return only the matching resources. If matches is not implemented, we don't filter and return all resources.