Search in a collection
GET/api/staff/search/:collection/
This endpoint allows staff or admin users to search within a specified collection. The search can be filtered by key and query parameters.
key: The field to search by (e.g.,_id,referrer,all, etc.).q: The query value to match against the specified key.order: The sort order of the results (ascfor ascending,descfor descending).limit: The maximum number of results to return.type: The type of comparison (e.g.,gtfor greater than).
Request
Responses
- 200
- 400
- 403
- 500