I am building a REST API that uses a filter parameter to control search results. E.g., one could search for a user by calling:
filter
GET /users/?filter=na
The Open Data Protocol (OData)
You can check BreezeJs too and see how this protocol it's implemented for node.js + mongodb with breeze-mongodb module and for a .NET project using Web API and EntityFramework with Breeze.ContextProvider dll.