API 在线调试
API v2.0使用 Swagger UI 风格的界面直接测试 API 接口
Free 限制
仅支持沙盒环境,每日 100 次调用限制
🔑 认证配置
已配置
GET
/v2/sites
获取沙盒环境中的模拟站点列表
请求参数
| 参数名 | 类型 | 必填 | 描述 | 值 |
|---|---|---|---|---|
page |
integer | 否 | 页码,从 1 开始 | |
pageSize |
integer | 否 | 每页数量,默认 20 |
请求 URL
GET https://sandbox-api.franklinwh.com/v2/sites?page=1&pageSize=20
响应结果
200 OK
85ms
{
"success": true,
"data": {
"items": [
{
"id": "sandbox_site_001",
"address": "123 Demo St, San Jose, CA",
"status": "online",
"deviceCount": 2
},
{
"id": "sandbox_site_002",
"name": "Test Office",
"address": "456 Test Ave, Palo Alto, CA",
"status": "online",
"deviceCount": 3
}
],
"pagination": {
"page": 1,
"pageSize": 20,
"total": 5,
"totalPages": 1
}
}
}