juzhiyuan commented on issue #849:
URL: 
https://github.com/apache/apisix-dashboard/issues/849#issuecomment-735369099


   > Hi, I think the API may like this.
   > 
   > ```
   > GET /apisix/admin/server_info/{id}
   > ```
   > 
   > ResponseBody
   > 
   > ```
   > {
   > "up_time": 10,
   > "last_report_time": 1606539645,
   > "id": "71cb4999-4349-475d-aa39-c703944a63d3",
   > "etcd_version": "3.5.0",
   > "hostname": "gento",
   > "version": "2.0"
   > }
   > ```
   > 
   > if without id, it will return an array like this:
   > 
   > ```
   > {"code":0,"message":"","data":{"rows":[{"up_time": 10,"last_report_time": 
1606539645,"id": "71cb4999-4349-475d-aa39-c703944a63d3","etcd_version": 
"3.5.0","hostname": "gento","version": 
"2.0"}],"total_size":1},"request_id":"6a3821a2-e0f7-45fc-bf55-2eddb7122154"}
   > ```
   > 
   > if with id, it will return an object:
   > 
   > ```
   > {"code":0,"message":"","data":{"up_time": 10,"last_report_time": 
1606539645,"id": "71cb4999-4349-475d-aa39-c703944a63d3","etcd_version": 
"3.5.0","hostname": "gento","version": 
"2.0"},"request_id":"6a3821a2-e0f7-45fc-bf55-2eddb7122154"}
   > ```
   
   Hi @guoqqqi, please build mock data according to this data format.
   
   ```json
   {
   "up_time": 10,
   "last_report_time": 1606539645,
   "id": "71cb4999-4349-475d-aa39-c703944a63d3",
   "etcd_version": "3.5.0",
   "hostname": "gento",
   "version": "2.0"
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to