1 Star 0 Fork 0

junqirao / tunn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tunn_api.postman_collection.json 6.24 KB
一键复制 编辑 原始数据 按行查看 历史
junqirao 提交于 2022-05-26 23:06 . update
{
"info": {
"_postman_id": "63a43856-a79d-49f1-b8e2-0f1d1d05be0a",
"name": "tunn_api",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "config",
"item": [
{
"name": "获取当前配置",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{protocol}}://{{base_url}}{{api_ver}}config/",
"protocol": "{{protocol}}",
"host": [
"{{base_url}}{{api_ver}}config"
],
"path": [
""
]
}
},
"response": []
},
{
"name": "覆盖设置",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"user\": {\r\n \"account\": \"test11\",\r\n \"password\": \"\"\r\n },\r\n \"auth\": {\r\n \"address\": \"vpn.gz.junqirao.icu\",\r\n \"port\": 10241\r\n },\r\n \"security\": {\r\n \"cert\": \"cert.pem\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{protocol}}://{{base_url}}{{api_ver}}config/save",
"protocol": "{{protocol}}",
"host": [
"{{base_url}}{{api_ver}}config"
],
"path": [
"save"
]
}
},
"response": []
},
{
"name": "获取当前所有配置",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{protocol}}://{{base_url}}{{api_ver}}config/all",
"protocol": "{{protocol}}",
"host": [
"{{base_url}}{{api_ver}}config"
],
"path": [
"all"
]
}
},
"response": []
}
]
},
{
"name": "application",
"item": [
{
"name": "获取当前运行状态",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{protocol}}://{{base_url}}{{api_ver}}application/",
"protocol": "{{protocol}}",
"host": [
"{{base_url}}{{api_ver}}application"
],
"path": [
""
]
}
},
"response": []
},
{
"name": "启动",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"user\": {\r\n \"account\": \"test10\",\r\n \"password\": \"123456\"\r\n },\r\n \"auth\": {\r\n \"address\": \"vpn.gz.junqirao.icu\",\r\n \"port\": 10241\r\n },\r\n \"security\": {\r\n \"cert\": \"cert.pem\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{protocol}}://{{base_url}}{{api_ver}}application/start",
"protocol": "{{protocol}}",
"host": [
"{{base_url}}{{api_ver}}application"
],
"path": [
"start"
]
}
},
"response": []
},
{
"name": "停止",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{protocol}}://{{base_url}}{{api_ver}}application/stop",
"protocol": "{{protocol}}",
"host": [
"{{base_url}}{{api_ver}}application"
],
"path": [
"stop"
]
}
},
"response": []
},
{
"name": "获取当前连接属性",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": ""
}
},
"response": []
}
]
},
{
"name": "admin",
"item": [
{
"name": "获取控制台信息",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{protocol}}://{{base_url}}{{api_ver}}admin/",
"protocol": "{{protocol}}",
"host": [
"{{base_url}}{{api_ver}}admin"
],
"path": [
""
]
}
},
"response": []
},
{
"name": "登录控制台",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"user\": \"admin\",\r\n \"password\": \"admin1\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{protocol}}://{{base_url}}{{api_ver}}admin/login",
"protocol": "{{protocol}}",
"host": [
"{{base_url}}{{api_ver}}admin"
],
"path": [
"login"
]
}
},
"response": []
}
]
},
{
"name": "remote",
"item": [
{
"name": "获取可供导入的路由",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{protocol}}://{{base_url}}{{api_ver}}remote/route/available",
"protocol": "{{protocol}}",
"host": [
"{{base_url}}{{api_ver}}remote"
],
"path": [
"route",
"available"
]
}
},
"response": []
},
{
"name": "更新路由",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "[\r\n {\r\n \"network\": \"20.20.20.20/32\",\r\n \"option\": \"export\"\r\n }\r\n]",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{protocol}}://{{base_url}}{{api_ver}}remote/route/save",
"protocol": "{{protocol}}",
"host": [
"{{base_url}}{{api_ver}}remote"
],
"path": [
"route",
"save"
]
}
},
"response": []
},
{
"name": "重置路由",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{protocol}}://{{base_url}}{{api_ver}}remote/route/reset",
"protocol": "{{protocol}}",
"host": [
"{{base_url}}{{api_ver}}remote"
],
"path": [
"route",
"reset"
]
}
},
"response": []
},
{
"name": "获取配置",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{protocol}}://{{base_url}}{{api_ver}}remote/config",
"protocol": "{{protocol}}",
"host": [
"{{base_url}}{{api_ver}}remote"
],
"path": [
"config"
]
}
},
"response": []
}
]
}
]
}
Go
1
https://gitee.com/jackrabbit872568318/tunn.git
git@gitee.com:jackrabbit872568318/tunn.git
jackrabbit872568318
tunn
tunn
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891