86545fd4cb
- 添加设备时记录接口和邻居数量 - 获取设备列表时记录返回数量 - 数据库保存成功/失败都有明确日志 - 创建API测试脚本便于调试
17 rader
391 B
Batchfile
17 rader
391 B
Batchfile
@echo off
|
|
chcp 65001 >nul 2>&1
|
|
echo ========================================
|
|
echo Testing API Endpoints
|
|
echo ========================================
|
|
echo.
|
|
|
|
echo [1] Testing /api/devices endpoint...
|
|
curl -s http://localhost:8080/api/devices | python -m json.tool
|
|
echo.
|
|
|
|
echo [2] Testing /api/topology endpoint...
|
|
curl -s http://localhost:8080/api/topology | python -m json.tool
|
|
echo.
|
|
|
|
pause
|