Skip to content

Querying collections

This page describes how collection endpoints should be queried.

All collection APIs must support:

  • Pagination
  • Filtering
  • Ordering

The goal is predictable and consistent behavior across services.


Filters are expressed using the following format:

field:operator:value
Examples:
status:eq:active
price:gte:100
### Supported operators
Equality:
- `eq`
- `neq`
Comparison:
- `lt`
- `lte`
- `gt`
- `gte`
Lists:
- `in`
- `nin`
Strings:
- `cnt`
- `sw`
- `ew`
- `icnt`
- `isw`
- `iew`
Arrays:
- `any`
- `nany`
---
## Combining filters
Multiple filters are combined by repeating query parameters.
---
## Ordering
Ordering must be:
- Explicit
- Documented
- Consistent
Exact syntax is intentionally left open and should be defined per service when needed.
---
## Rules
- Filtering never replaces authorization
- Invalid filters must return validation errors
- Unsupported filters must not be silently ignored
<Aside type="danger">
Authorization always happens server-side.
</Aside>