Skip to content

Commit ba4227f

Browse files
authored
docs: api manual docs (#40)
1 parent 5ac549d commit ba4227f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/dev_manual/api_manual.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
示例请求头:
3939

4040
```bash
41-
curl -X GET "http://localhost:4004/api/v1/dashboard/current" \
41+
curl -X POST "http://{host}:{port}/api/v2/toolbox/device/base" \
4242
-H "1Panel-Token: <1panel_token>" \
4343
-H "1Panel-Timestamp: <current_unix_timestamp>"
4444
```
@@ -73,7 +73,7 @@
7373
!!! note ""
7474

7575
- 时间戳的有效性:需要确保服务器与客户端时间同步,否则会导致验证失败。建议使用 NTP 同步时间
76-
- 白名单使用:将可信任的 IP 或 IP 段加入白名单,避免频繁 Token 验证的开销;如需放行所有 IP ,可以配置 `0.0.0.0`
76+
- 白名单使用:将可信任的 IP 或 IP 段加入白名单,避免频繁 Token 验证的开销;如需放行所有 IP ,可以配置 `0.0.0.0/0`(所有 IPv4),`::/0`(所有 IPv6)
7777

7878
## 3 常见问题
7979

0 commit comments

Comments
 (0)