파일
network-topology-discovery/test-api.bat
T
Your Name 86545fd4cb Debug: 添加详细日志以诊断设备列表和数据显示问题
- 添加设备时记录接口和邻居数量
- 获取设备列表时记录返回数量
- 数据库保存成功/失败都有明确日志
- 创建API测试脚本便于调试
2026-04-26 00:12:08 +08:00

17 라인
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