I am designing an API where-1. There can be multiple devices under a gateway.2. There are multiple sensors on every device.GET /devices/d1/sensors/s1 returns the status of sensor s1 on device d1.Moving forward, I need to allow querying sensors across multiple devices. Something like- GET /devices/d1,d2,d7,d30,d45,d500/sensors/s1,s5 would not scale as I'd be dealing with a lot of devices+sensors and increasing the URL length linearly would be bad design.How can I approach this more elegantly?
Sending multiple resources under REST endpoints
rest;api design