Change SmartThings APIs for Tizen 5.0
[apps/native/st-things-light.git] / shared / res / resource.json
index 86e26f9..14d7ba5 100644 (file)
@@ -2,22 +2,22 @@
   "resources": {
     "single": [
       {
-        "uri": "/capability/switch/main/0",
+        "uri": "/capability/motionSensor/main/0",
         "types": [
-          "x.com.st.powerswitch"
+          "oic.r.sensor.motion"
         ],
         "interfaces": [
-          "oic.if.a",
+          "oic.if.s",
           "oic.if.baseline"
         ]
       },
       {
-        "uri": "/capability/motionSensor/main/0",
+        "uri": "/capability/switch/main/0",
         "types": [
-          "oic.r.sensor.motion"
+          "x.com.st.powerswitch"
         ],
         "interfaces": [
-          "oic.if.s",
+          "oic.if.a",
           "oic.if.baseline"
         ]
       }
   },
   "resourceTypes": [
     {
-      "type": "x.com.st.powerswitch",
+      "type": "oic.r.sensor.motion",
       "properties": [
         {
-          "key": "power",
-          "type": "string",
-          "readOnly": 3,
-          "mandatory": true,
+          "key": "value",
+          "type": "boolean",
+          "readOnly": 1,
+          "mandatory": false,
           "isArray": false
         }
       ]
     },
     {
-      "type": "oic.r.sensor.motion",
+      "type": "x.com.st.powerswitch",
       "properties": [
         {
-          "key": "value",
-          "type": "boolean",
-          "readOnly": 1,
-          "mandatory": false,
+          "key": "power",
+          "type": "string",
+          "readOnly": 3,
+          "mandatory": true,
           "isArray": false
         }
       ]