dtype.org
Log in

Difference between revisions of "DSmartHome"

From dtype.org
(API Gateway)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
 +
* [[dSmartHome-api Lambda handler]]
  
 
== API Gateway ==
 
== API Gateway ==
Line 34: Line 36:
 
   "type": "testtype",
 
   "type": "testtype",
 
   "description": "testdesc"
 
   "description": "testdesc"
 +
}
 
</nowiki>
 
</nowiki>

Latest revision as of 21:52, 30 July 2017

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"
}