REST服务接口

1)登陆

GET:/login?user=user&pwd=md5(password)
返回JSON对象,获取token

2)读取变量实时值

GET:/read?token=xxx&tags=second,minute

3)写入变量值

URL:/write?token=xxx
POST数据:simtag6=11&simtag5=true
返回JSON对象

4)浏览变量

GET:/browse?token=xxx&page=1&rows=1000
返回JSON对象

5)读取历史数据

GET:/histvalue?token=xxx&start=2020-5-1 12:00&end=2020-5-1 20:00&tags=simtag1,simtag2&second=1
返回JSON对象

6)读取历史时刻值

GET:/timevalue?token=xxx&start=2020-5-1 12:00&tags=simtag1,simtag2&type=x
返回JSON对象

7)执行C#功能函数

URL:/function?token=xxx&name=funname
POST数据:tag1=11&tag2=true

8)读取日志

URL:/logquery?token=xxx
POST数据:logquery=0&stime=2012-9-1&etime=2021-12-31
logquery:0-系统日志     3-报警日志     4-操作日志     5-变量日志