Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for filters #21

Open
richardolsson opened this issue Nov 3, 2016 · 1 comment
Open

API for filters #21

richardolsson opened this issue Nov 3, 2016 · 1 comment
Labels

Comments

@richardolsson
Copy link
Member

richardolsson commented Nov 3, 2016

The get() resource proxy method needs to be augmented with some sort of support for passing filters, which will be augmented into a query string. The current API draft dictates the following about filter format:

For example, getting actions with activity ID 1 and any of the locations 1 or 2 would be:

GET /orgs/1/actions?filter=location:1,location:2&filter=activity:1

This would be translated to (location == 1 || location == 2) && activity == 1.

This is what the SDK needs to accommodate. This issue ticket can be used to discuss/draft an interface for passing filters.

@richardolsson
Copy link
Member Author

A simple solution to this was implemented by eb6df45.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant