{
  "name": "网址连通性测试API",
  "version": "1.0.0",
  "endpoints": {
    "GET /u/{url}": {
      "description": "通过URL路径直接测试网址连通性（支持URL参数）",
      "parameters": {
        "url": "string - 要测试的完整网址（包含协议和参数）"
      },
      "examples": [
        "/u/https://baidu.com",
        "/u/https://google.com?q=test",
        "/u/https://github.com/search?q=javascript",
        "/u/https://example.com/api/data?id=123&type=json"
      ]
    },
    "POST /api/test": {
      "description": "测试单个网址的连通性",
      "parameters": {
        "url": "string - 要测试的网址"
      },
      "example": {
        "url": "https://example.com"
      }
    },
    "POST /api/batch-test": {
      "description": "批量测试多个网址的连通性",
      "parameters": {
        "urls": "array - 要测试的网址列表"
      },
      "example": {
        "urls": [
          "https://example1.com",
          "https://example2.com"
        ]
      }
    }
  },
  "usage": {
    "url_path_test": "GET /u/https://example.com - 直接在URL路径中指定要测试的网址",
    "single_test": "POST /api/test with JSON body: {\"url\": \"https://example.com\"}",
    "batch_test": "POST /api/batch-test with JSON body: {\"urls\": [\"https://example1.com\", \"https://example2.com\"]}"
  }
}