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

Filter device list by tags in API #671

Open
1 task done
neben opened this issue Feb 25, 2022 · 0 comments
Open
1 task done

Filter device list by tags in API #671

neben opened this issue Feb 25, 2022 · 0 comments

Comments

@neben
Copy link

neben commented Feb 25, 2022

  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary

The device service GET endpoint should be able to filter results by tag keys/values.

What is the use-case?

This gives a very flexible filtering mechanism. For example, we store the tenant for each sensor in a tenant tag. It would be great to query the API to get all sensors belonging to this tenant.

Implementation description

Add the tag keys and values as a parameter, prefixed with tag:

api/devices?limit=10&applicationID=1&tagTenant=exampleTenant1

Can you implement this by yourself and make a pull request?

Unfortunately not in the near future.

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