dtype.org
Log in

DSmartHome

From dtype.org

API Gateway

{ 
    "TableName": "dsmarthome",
    "Item": {
        "device": {
            "S": "$input.path('$.device')"
            },
        "time": {
            "N": "$input.path('$.time')"
        },
        "value": {
            "N": "$input.path('$.value')"
        },
        "type": }
            "S": "$input.path('$.type')"
        },
        "description": {
            "S": "$input.path('$.description')"
        }
    }
}

Test values:

{
  "device": "test01",
  "time": "01",
  "value": "02",
  "type": "testtype",
  "description": "testdesc"
}