chirpstack-application-server
chirpstack-application-server copied to clipboard
Filter device list by tags in API
- [x] 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.