factory/apps/third/king/king_api.py

55 lines
1.2 KiB
Python

kapis = {
"login": {
"url": "/api/v1/login",
"method": "post"
},
"logout": {
"url": "/api/v1/logout",
"method": "post"
},
"read_variables": {
"url": "/api/v1/variables",
"method": "get"
},
"read_allrealvalue": {
"url": "/api/v1/allrealvalue",
"method": "get"
},
"read_devicerealvalue": {
"url": "/api/v1/devicerealvalue",
"method": "get"
},
"read_grouprealvalue": {
"url": "/api/v1/grouprealvalue",
"method": "get"
},
"read_tagrealvalue": {
"url": "/api/v1/realvalue",
"method": "get"
},
"read_batchtagrealvalue": {
"url": "/api/v1/batchrealvalue",
"method": "post"
},
"read_devicestatus": {
"url": "/api/v1/devicestatus",
"method": "get"
},
"write_realvariables": {
"url": "/api/v1/realvariables",
"method": "post"
},
"heartbeat": {
"url": "/api/v1/heartbeat",
"method": "post"
},
"read_alldevicestatus": {
"url": "/api/v1/alldevicestatus",
"method": "get"
},
"get_loginlist": {
"url": "/api/v1/loginlist",
"method": "get"
}
}