update domo controller to the rest api

This commit is contained in:
jbnadal
2018-04-30 15:18:45 +02:00
parent c29d356fc2
commit 77c888a5b1
18 changed files with 525 additions and 588 deletions

View File

@@ -41,5 +41,21 @@
"method": "delete"
}
}
{
"model": "put",
"endpoint": "/v1/shutters/:id/up",
"ubus": {
"path": "domo.shutters.up",
"method": "up"
}
},
{
"model": "put",
"endpoint": "/v1/shutters/:id/down",
"ubus": {
"path": "domo.shutters.down",
"method": "down"
}
}
]
}

View File

@@ -3,9 +3,9 @@
"resources": [
{
"model": "get",
"endpoint": "/v1/device-capabilities",
"endpoint": "/v1/capabilities",
"ubus": {
"path": "domo.devices.capabilities",
"path": "domo.capabilities",
"method": "list"
}
}