{
"httpMethod": "GET",
"endpoint": "https://api.example.com/users",
"responseType": "JSON",
"query": {
"page": 1,
"size": 10
},
"header": {
"Authorization": "Bearer ${token}"
}
}{
"httpMethod": "POST",
"endpoint": "https://api.example.com/users",
"contentType": "application/json",
"body": {
"name": "张三",
"email": "zhangsan@example.com",
"age": 25
},
"successCondition": [
{
"field": "code",
"operator": "eq",
"value": 200
}
]
}{
"httpMethod": "GET",
"endpoint": "https://api.example.com/users/{userId}/profile",
"path": {
"userId": "${user.id}"
}
}{
"httpMethod": "POST",
"endpoint": "https://api.example.com/upload",
"contentType": "multipart/form-data",
"body": {
"file": "${fileData}",
"metadata": {
"name": "document.pdf",
"type": "pdf"
}
}
}{
"httpMethod": "GET",
"endpoint": "https://api.example.com/secure-data",
"accountId": "oauth_account_001",
"authProtocol": "OAUTH2",
"account": {
"clientId": "client_123",
"clientSecret": "secret_456",
"tokenUrl": "https://auth.example.com/token"
}
}{
"successCondition": [
{
"field": "statusCode",
"operator": "eq",
"value": 200
},
{
"field": "body.success",
"operator": "eq",
"value": true
}
]
}{
"successExp": "response.body.code === 0 && response.statusCode < 300"
}{
"httpStatus": 200,
"header": {
"content-type": "application/json",
"server": "nginx"
},
"body": {
"code": 0,
"message": "success",
"data": {...}
}
}{
"endpoint": "https://api.example.com/users/${userId}",
"query": {
"token": "${authToken}",
"timestamp": "${currentTime}"
}
}Loop (遍历用户列表)
├── HttpAction (调用用户API)
└── VarAction (收集结果){
"retryConfig": {
"maxRetries": 3,
"retryDelay": 1000,
"retryConditions": ["500", "502", "503"]
}
}{
"cacheConfig": {
"enabled": true,
"ttl": 300,
"key": "${endpoint}_${query}"
}
}