Measurements are a data set derived or arriving at a certain period, linked to a specific device and/or task and/or partfield and/or device equipment. Measurement might be summarized data of a certain period, or an array of points data assigned to specific geographical points and time-stamps, and it might be uploaded to the system from a given data source, or the system itself derives them, based on data processing functions. The upload of input data is not linked to a single partfield, so in the next subchapters the possible input methods carried out directly by data sources are described.
POST /measure HTTP/1.1 Content-Type: application/vnd.api+json Accept: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "data":[{ "type": "measure", "attributes": { "Task_ID": "3", "StartTime": "2018-06-02T08:00:00.000Z ", "StopTime": "2018-06-02T10:00:00.000Z ", "Worker_ID": "10", } }] }
HTTP/1.1 201 Created Content-Type: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "link":[{ "self": "http://api.visiblefarm.net/measure" }, "data":[{ "type": "measure", "id": "123", "attributes": { "StartTime": "2018-06-02T08:00:00.000Z ", "StopTime": "2018-06-02T10:00:00.000Z ", "WorkDate": "2018-06-02", "ElementNumber": "0" }, "relationships": { "task": { "data": { "id": "3", "type": "task" } }, "worker": { "data": { "id": "10", "type": "worker" } }, } }] }
POST /measuretotal HTTP/1.1 Content-Type: application/vnd.api+json Accept: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "data":[{ "type": "measuretotal", "attributes": { "Measure_ID": "123", "Property_ID": "247", "StartValue": "132400", "StopValue": "134900", "TotalValue": "2500", "Device": "1703" } }] }
HTTP/1.1 201 Created Content-Type: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "link":[{ "self": "http://api.visiblefarm.net/measuretotal" }, "data":[{ "type": "measuretotal", "id": "1236453", "attributes": { "Measure_ID": "123", "Property_ID": "247", "StartValue": "132400", "StopValue": "134900", "TotalValue": "2500", } }] }
POST /measurepoint HTTP/1.1 Content-Type: application/vnd.api+json Accept: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "data":[{ "type": "measurepoint", "attributes": { "Measure_ID": "123", "Position": { "type": "Point", "coordinates": [ 17.342210, 46,234320, 23,453 ] }, "TimeStamp": "2018-06-02T09:12:23.200Z ", "Range": "12.000" } }] }
HTTP/1.1 201 Created Content-Type: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "link":[{ "self": "http://api.visiblefarm.net/measuretotal" }, "data":[{ "type": "measurepoint", "id": "345463", "attributes": { "TimeStamp": "2018-06-02T09:12:23.200Z " }, "relationships": { "measure": { "data": { "id": "123", "type": "measure" } } } }] }
POST /measurevalue HTTP/1.1 Content-Type: application/vnd.api+json Accept: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "data":[{ "type": "measurevalue ", "attributes": { "MeasurePoint_ID": "345463", "Device_ID": "1703", "Property_ID": "247", "Value": "132405" } }] }
HTTP/1.1 201 Created Content-Type: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "link":[{ "self": "http://api.visiblefarm.net/measurevalue" }, "data":[{ "type": "measurevalue", "id": "3473637002", "attributes": { "Value": "132403” }, "relationships": { "measurepoint": { "data": { "id": "345463", "type": "measurepoint" } }, "property": { "data": { "id": "247", "type": "property" } } } }] }
POST /measurepath HTTP/1.1 Content-Type: application/vnd.api+json Accept: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "data":[{ "type": "measurepath ", "attributes": { "Measure_ID": "123", "Device": "1703", "StartTime": "2018-06-02T08:12:00.000Z", "StopTime": "2018-06-02T08:13:00.000Z", "Path": { "type": "LineString ", "coordinates": [ [ 17.342210, 46.234320, 23.453 ],[ 17.342211, 46.234322, 23.454 ] ] } } }] }
HTTP/1.1 201 Created Content-Type: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "link":[{ "self": "http://api.visiblefarm.net/measurpath" }, "data":[{ "type": "measurpath", "id": "14252790", "attributes": { "Count": "2", "Length": "12.4", }, "relationships": { "measure": { "data": { "id": "123", "type": "measure" } } } }] }
PATCH / measurepath/14252790 HTTP/1.1 Content-Type: application/vnd.api+json Accept: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "data":[{ "type": "measurepath ", "id": "14252790", "attributes": { "Path": { "type": "LineString ", "coordinates": [ [ 17.342212, 46.234323, 23.453 ] ] } } }] }
HTTP/1.1 200 OK Content-Type: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "link":[{ "self": "http://api.visiblefarm.net/measurepath" }, "data":[{ "type": "measurepath", "id": "14252790", "attributes": { "Path": "3", "Length": "15.3" }, "relationships": { "measure": { "data": { "id": "123", "type": "measure" } } } }] }
POST /measurevaluepath HTTP/1.1 Content-Type: application/vnd.api+json Accept: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "data":[{ "type": "measurepath ", "attributes": { "StartTime": "2018-06-02T08:12:00.000Z", "StopTime": "2018-06-02T08:13:00.000Z", "Measure_ID": "123", "Property_ID": "247", "PathAndValue": { "type": "LineString ", "coordinates": [ [ 17.342210, 46.234320, 23.453 132402 ],[ 17.342211, 46.234322, 23.454 132403 ] ] } } }] }
HTTP/1.1 201 Created Content-Type: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "link":[{ "self": "http://api.visiblefarm.net/measurvaluepath" }, "data":[{ "type": "measurepath", "id": "34252790", "attributes": { "PathAndValue": "2" }, "relationships": { "measure": { "data": { "id": "123", "type": "measure" } }, "property": { "data": { "id": "247", "type": "property" } } } }] }
PATCH / measurevaluepath/34252790 HTTP/1.1 Content-Type: application/vnd.api+json Accept: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "data":[{ "type": "measurepath ", "id": "34252790", "attributes": { "PathAndValue": { "type": "LineString ", "coordinates": [ [ 17.342212, 46.234323, 23.453, 132403 ] ] } } }] }
HTTP/1.1 200 OK Content-Type: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "link":[{ "self": "http://api.visiblefarm.net/measurvaluepath" }, "data":[{ "type": "measurepath", "id": "34252790", "attributes": { "PathAndValue": "3" }, "relationships": { "measure": { "data": { "id": "123", "type": "measure" } }, "property": { "data": { "id": "123", "type": "property" } } } }] }
POST /measurevaluepathExt HTTP/1.1 Content-Type: application/vnd.api+json Accept: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "data":[{ "type": "measurepath ", "attributes": { "Measure_ID": "123", "PathAndValues": { "range": 6.0, "coordinates": [ [ "lon": 17.342210, "lat": 46.234320, "alt": 23.453, "time": "2018-06-02T09:12:23.200Z", "values": [ [ 247 132405 1703 ],[ 1498 23000 1703 ] ] },{ "lon": 17.342211, "lat": 46.234322, "alt": 23.454, "time": "2018-06-02T09:12:24.200Z", "values": [ [ 247 132408 1703 ],[ 2340 11500 ] ] } ] } } }] }
HTTP/1.1 201 Created Content-Type: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "link":[{ "self": "http://api.visiblefarm.net/measurevaluepathext" }, "data":[{ "type": "measurepath", "id": "34252790", "attributes": { "PathAndValue": "2" }, "relationships": { "measure": { "data": { "id": "123", "type": "measure" } }, "property": { "data": { "id": "247", "type": "property" } "data": { "id": "1498", "type": "property" } "data": { "id": "2340", "type": "property" } } } }] }
PATCH / measurevaluepathext/34252790 HTTP/1.1 Content-Type: application/vnd.api+json Accept: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "data":[{ "type": "measurepath ", "id": "34252790", "attributes": { "PathAndValue": { "coordinates": [ [ "lon": 17.342212, "lat": 46.234322, "alt": 23.454, "time": "2018-06-02T09:12:25.200Z", "values": [ [ 247, 132410, 1703 ],[ 2340, 11500 ] ] } ] } } }] }
HTTP/1.1 200 OK Content-Type: application/vnd.api+json { "meta":{ "JWToken": "ba1af54ec3f014f765e8172f9a86dc2a" }, "link":[{ "self": "http://api.visiblefarm.net/measurvaluepathext" }, "data":[{ "type": "measurepath", "id": "34252790", "attributes": { "PathAndValue": "3" }, "relationships": { "measure": { "data": { "id": "123", "type": "measure" } }, "property": { "data": { "id": "247", "type": "property" } "data": { "id": "2340", "type": "property" } } } }] }