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

Admit list of tags on getDevices filter #4024

Open
pintify opened this issue Apr 18, 2024 · 0 comments
Open

Admit list of tags on getDevices filter #4024

pintify opened this issue Apr 18, 2024 · 0 comments

Comments

@pintify
Copy link

pintify commented Apr 18, 2024

Is your feature request related to a problem? Please describe.
In the REST API, the tagId filter in the getDevices is really powerful but I'm currently stacking multiple requests with different tagId and it seems like there should be the possibility to request them on an OR relationship that allows me to request all devices that fits with multiple tagIds at the same time, which is not very complicated to reproduce on the database request internally. Repeating the requests and removing duplicates is a bit overheaded.

Describe the solution you'd like
I'd suggest modifying the tagId filter on getDevices to become an array of tags (.../devices?tagId=car&tagId=house).

Additional context
It would make it more similar to the matchTerm filter which is also very powerful

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

No branches or pull requests

1 participant