Files
platform/test/test-api.http

70 lines
1.5 KiB
Plaintext
Raw Normal View History

### remote 令牌
GET http://110.40.82.250:18702/server/index/getToken/key/juipbyjdapiverify
### remote 配置信息
GET http://103.139.212.110:9989/api/auto_query
2025-04-01 10:51:32 +08:00
token: yzfO0vSEnbOL9fkmd4bgKiEuYw5Kjlfb.anVpcA==.MTc0MzQyOTAwMQ==
### remote 配置连接
POST http://103.139.212.110:9989/api/connect
token: et1wWdrLLRsiQPCar8GunNFEZqcxATFa.anVpcA==.MTc0MzM0MjAwMQ==
Content-Type: application/json
{
"uuid": "7a17e8b4-cdc3-4500-bf16-4a665991a7f6",
"auto_config": [
{
"count": 10
}
]
}
### remote 下线全部
POST http://103.139.212.110:9989/api/disconnect
2025-04-01 10:51:32 +08:00
token: yzfO0vSEnbOL9fkmd4bgKiEuYw5Kjlfb.anVpcA==.MTc0MzQyOTAwMQ==
2025-03-29 11:13:10 +08:00
Content-Type: application/json
{
"uuid": "7a17e8b4-cdc3-4500-bf16-4a665991a7f6",
"config": {}
}
### gateway 连接信息
GET http://api:123456@110.40.82.248:9990/edge
### gateway 端口信息
GET http://api:123456@110.40.82.248:9990/port/active
2025-03-29 11:13:10 +08:00
### 设备令牌
POST http://localhost:8080/api/auth/token
Content-Type: application/json
{
"client_id": "test",
"client_secret": "test",
"grant_type": "client_credentials"
}
> {%
client.global.set("access_token", response.body.access_token);
client.global.set("refresh_token", response.body.refresh_token);
%}
### 提取代理
POST http://localhost:8080/api/channel/create
Authorization: Basic test test
Content-Type: application/json
2025-03-28 15:01:30 +08:00
Accept: application/json
{
"resource_id": 1,
"protocol": "http",
"auth_type": 0,
"count": 200,
"prov": "",
"city": "",
"isp": "",
"result_type": "text",
"result_separator": "both"
}