Skip to content
Community forum

How do I filter a GET list, e.g. ?status=active?

SolvedSupero SupportSupero team asked

Common question, written up by the Supero team.

GET /api/v1/crud/acme/order?status=active comes back 200 with every order, including cancelled ones. No error.

Link

1 answer

Accepted answer
Accepted answer

GET list only reads paging and scope parameters: limit, offset, cursor, sort_by, sort_order, include_total, parent_id/parent_uuid, parent_type, tenant, project. Any other parameter is ignored, so you get the full list. To filter, use POST /api/v1/crud/{domain}/query:

json
{"type": "order", "match": {"status": "active"}, "limit": 50}

For ranges, use the filter tree instead of match. In the SDKs, query() and find() already go through /query; list() doesn't take filters.

Supero Platform teamSupero team answered
Link

Your answer

How do I filter a GET list, e.g. ?status=active? | Supero Community