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

Support wildcards in data API field names #151

Open
groenroos opened this issue Mar 23, 2021 · 1 comment
Open

Support wildcards in data API field names #151

groenroos opened this issue Mar 23, 2021 · 1 comment
Assignees
Labels
feature Brand new features to Sapling

Comments

@groenroos
Copy link
Member

Add support to craft data API requests where field names also support wildcards. Useful in "search" type usecases where multiple fields can be queried for the same data;

GET /data/contacts/address_*/*cambridge*

This would find the search term "cambridge" in any position, in any field that begins with address_ (i.e. address_line1, address_line2, address_city, etc).

A wildcard alone would also allow searching in any field:

GET /data/itineraries/*/Cambridge
@groenroos groenroos added the feature Brand new features to Sapling label Mar 23, 2021
@groenroos groenroos added this to the M3 - Release 3.0 milestone Mar 23, 2021
@groenroos groenroos self-assigned this Mar 23, 2021
@groenroos
Copy link
Member Author

Open question on whether this should be allowed for POST modify queries as well. Potentially hairy with some database systems, and not exactly clear what the use case would be. On the other hand, it seems like a gotcha that it would work in one query method but not another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Brand new features to Sapling
Development

No branches or pull requests

1 participant