Get JSON
Returns the full JSON or the requested domain defined in the variables section.
HTTP Request
- Methods :
GET/POST
- URL full JSON :
http://screen-address:8080/api/get/json
- URL domain JSON :
http://screen-address:8080/api/get/json/{domain}
JSON TCP Request
- URL full JSON :
/api/get/json
- URL domain JSON :
/api/get/json/{domain}
Parameters
Attribute | Description |
---|---|
password | api password (optional) |
HTTP full JSON
Request :
GET http://screen-address:8080/api/get/json
Response :
{
"code":200,
"domotys": {...},
"config": {...},
"information": {...},
"theme": {...},
"network": {...},
"update": {...},
"screen": {...},
"date_time": {...},
"home": {...},
"home_action": {...},
"lighting": {...},
"opening": {...},
"alarm": {...},
"action": {...},
"heat": {...},
"view_list": {...},
"buzzer": {...},
"message": {...},
"sd": {...}
}
HTTP domotys domain
Request :
GET http://screen-address:8080/api/get/json/domotys
Response :
{
"code":200,
"model": "wts-04"
}
JSON TCP full JSON
Request :
{
"request": {
"url":"/api/get/json"
},
"id":"message-id", //Optional
"password":"password" //If defined and only for the first request
}
Response :
{
"request":{
"response": {
"code": 200,
"domotys": {...},
"config": {...},
"information": {...},
"theme": {...},
"network": {...},
"update": {...},
"screen": {...},
"date_time": {...},
"home": {...},
"home_action": {...},
"lighting": {...},
"opening": {...},
"alarm": {...},
"action": {...},
"heat": {...},
"view_list": {...},
"buzzer": {...},
"message": {...},
"sd": {...}
},
"content_type":"application/json"
},
"id":"message-id" //Returns the received ID if defined.
}
JSON TCP domotys domain
Request :
{
"request": {
"url":"/api/get/json/domotys"
},
"id":"message-id", //Optional
"password":"password" //If defined and only for the first request
}
Response :
{
"request":{
"response": {
"code":200,
"model":"wts-04"
},
"content_type":"application/json"
},
"id":"message-id" //Returns the received ID if defined.
}