阿里L7可视化的后端json样例数据
时间: 2023-08-11 09:20:54 浏览: 41
以下是阿里L7可视化后端返回的一个JSON样例数据:
```json
{
"code": 200,
"message": "success",
"data": [
{
"id": "1",
"name": "example_service",
"endpoints": [
{
"id": "1",
"name": "example_endpoint_1",
"requests": [
{
"id": "1",
"name": "example_request_1",
"method": "GET",
"url": "/example/url",
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"body": "{\"example_key\": \"example_value\"}",
"response": {
"status": 200,
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"body": "{\"example_key\": \"example_value\"}"
}
}
]
}
]
}
]
}
```
其中,`data`字段表示服务列表,每个服务下包含多个`endpoint`,每个`endpoint`下包含多个请求`request`。`request`包含请求方法`method`、请求路径`url`、请求头`headers`、请求体`body`和响应`response`信息。响应信息包含状态码`status`、响应头`headers`和响应体`body`。