Create new endpoint to POST sensor readings
Jira Legacy | ||||||
---|---|---|---|---|---|---|
|
...
Test Step # | Description | Test Data | Expected Result | Actual Result | Pass/Fail |
1 | Using Postman an API make a POST request to {{base_url}}/sensorssensor/add_reading/partner/1/farm/:{{farm_id}} Endpoint with sample data for an active sensor at the farm_id in the request in the same format as test data | Example json that webhook will post to the url [ { ], "value": [ 1, 2 ], "validated": [ false, false ] }, { "node_esid": "123", "sensor_esid": "124", "parameter_number": 2, "unit": "kPa", "timedata": [ 3 109.8519954399], | 200 Response status | ||
2 | Check database and ensure that sensor reading data is being persisted correctly | Readings received in the post request exist | |||
3 |
...