This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Every network maintainer gets an API key to authenticate POST, PATCH, DELETE requests on sensors and observations in their network | |
// What a network maintainer would POST to /sensor-observation | |
{ | |
"data": { | |
"type": "sensor-observation", | |
"api-key": "abc123mykey", // Assigned to maintainer of sensor network | |
"attributes": { | |
"time": "2016-02-29T18:39:30.519207", // The one attribute that we mandate. | |
"observation": { | |
// The maintainer of the sensor network is responsible |