|
One more followup (sign): According to Roy T. Fielding, it *can* be useful to have meaningful resource hierarchies, so the suggestion to not use specific codes for sensors in URIs is not meant to generally discourage that practice. According to his quote, cited on the RestWiki:
"REST does not require that a URI be opaque. The only place where the word opaque occurs in my dissertation is where I complain about the opaqueness of cookies. In fact, RESTful applications are, at all times, encouraged to use human-meaningful, hierarchical identifiers in order to maximize the serendipitous use of the information beyond what is anticipated by the original application."
http://rest.blueoxen.net/cgi-bin/wiki.pl?RestAndUriOpacity#nid1SK
Specifically regarding providing sensor data, there is a RESTful service for earthquake engineering data whose API is published at:
http://it.nees.org/library/data/neescentral-web-services-api.php
Perhaps that might provide some guidance or at least inspiration for coming up with a URI hierarchy and conventions in your own application ...
|