a web-server based on SpringBoot,provides interface for java background to monitor and operate Line,including create ,delete ,check ,self monitoring,etc
{
"URL":"/v1.0/line/notify",
"port":"18080",
"method":"post",
"param":{
},
"return":{
}
}
{
"URL":"/v1.0/line/notify",
"port":"18080",
"method":"put",
"param":{
"lineId":"01"
},
"return":{
"status":"ok|not exist"
}
}
{
"URL":"/v1.0/line/notify",
"port":"18080",
"method":"get",
"param":{
"lineId":"01"
},
"return":{
"status":"ok|not exist",
"data":{
"socket5":"on",
"shadowsocks":"off"
}
}
}
{
"URL":"/v1.0/line/notify",
"method":"delete",
"port":"18080",
"param":{
"lineId":"01"
},
"return":{
"status":"ok"
}
}
{
"URL":"/v1.0/line/notify/proto",
"port":"18080",
"method":"get",
"param":{
"protoId":"socket5|shadowsocks",
"lineId":"01",
"action":"on|off"
},
"return":{
"status":"ok|not exits"
}
}
{
"URL":"/v1.0/line/adsl",
"port":"18080",
"method":"put",
"param": {
"lineId": 1
},
"body": {
"adslUser": "xxx",
"adslPassword": "xxx",
"ethernetName": "xxx"
//nullable and inherit the origin ethernetName
},
"return": {
true
|
false
}
}
{
"URL": "/v1.0/host/rateLimit/{rateLimitKB}",
"port": "18080",
"method": "put",
"return": {
}
}
After calling Create a Line
or Refresh a Line
and the Line is OK,it will be sent it to java server with the
following data format :
{
"requestName": "/v1.0/line",
"port": "8088",
"method": "put",
"data": {
"hostId":"01",
"lines":[{
"id":"01",
"socks5":{
"ip":"123456",
"port":"7777",
"username":"testsocks",
"password":"testsocks"
},
"ss":{
"ip":"654321",
"port":"6666",
"password":"testss",
"encryption":"rc4-md5"
}
}]
}
}