-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
Description
How do we want to design the filter capabilities?
We can load and loadReverse with an optional MetadataMatcher but how do we expose those filters in the http-api?
Two options:
- Using query params in the format:
?meta_1_field=_aggregate_id&meta_1_operator=eq&meta_1_value=abcd-efgt-ijklmnop&meta_2_field=_aggregate_version&meta_2_operator=gte&meta_2_value=10
We could also shorten the params so that meta_1_field becomes m_1_f for examle
And meta_<no>_operator could be optional and default to eq
This would save a lot of characters because the length of an URI is somewhat limited.
- Use
POSTand send filters as JSON in the request body.