Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 839 Bytes

Node-History.md

File metadata and controls

61 lines (44 loc) · 839 Bytes

Node History

Endpoint: /node/history/

Methode: GET

Parameters:

Name Type Description
id optional string specific node id, empty = all
limit optional integer number of data, default = all today histories

USAGE

Get Node History

with curl

curl "smartfarm.pascal-id.test/node/history/?id=735Xaw2"

Example result:

{
  "code" : 0,
  "count" : 12,
  "data" : [
    {
      "slug" : "735Xaw2",
      "date" : "2019-10-01 16:49:31",
      "state" : "",
      "value" : "5"
    },
    
    .
    .
    .

    {
      "slug" : "735Xaw2",
      "date" : "2019-10-01 16:35:18",
      "state" : "2",
      "value" : "4"
    },
    {
      "slug" : "735Xaw2",
      "date" : "2019-10-01 16:35:18",
      "state" : "1",
      "value" : "4"
    }
  ]
}