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

Boolean operators in searches #17

Open
MikeThacker1 opened this issue Mar 6, 2020 · 0 comments
Open

Boolean operators in searches #17

MikeThacker1 opened this issue Mar 6, 2020 · 0 comments
Labels

Comments

@MikeThacker1
Copy link
Contributor

There's no clear guidance on how parameters are combined in API GET queries, but most are combined with a boolean AND.

There is a need to use a boolean OR in some circumstances, eg getting services with either of two taxonomy terms.

We'd like to suggest this syntax:
/services?taxonomy_id=esdServiceType:12&taxonomy_id=esdServiceType:13,14,15
for getting services of service type 12 AND (13, 14, or 15)

A simpler implementation would just be the second part using comma-separated values to support am OR operation.

The is approach could be applied to the "?need", "?circumstance" and "?serviceType" parameters supported by implementations designed ton work with these LGA vocabularies.

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