docs: use html table in rest api (#20893)
* docs: add rest api diff * docs: use html table
This commit is contained in:
parent
b8ca369513
commit
c3abf5ede7
|
@ -405,10 +405,18 @@ Response body:
|
||||||
|
|
||||||
### Response body
|
### Response body
|
||||||
|
|
||||||
| Response body | TDengine 2.x | TDengine 3.0 | note |
|
<table>
|
||||||
| :--------------------| :------------------: | :----------: | :-----------------------------------: |
|
<tr>
|
||||||
| Success | "status": "succ", | "code": 0, | |
|
<td> Response body </td> <td> TDengine 2.x </td> <td> TDengine 3.0 </td>
|
||||||
| Column meta | "head": [
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> Success </td> <td> "status": "succ",</td> <td> "code": 0,</td>
|
||||||
|
/<tr>
|
||||||
|
<tr>
|
||||||
|
<td> Column meta </td>
|
||||||
|
<td>
|
||||||
|
```
|
||||||
|
"head": [
|
||||||
"name",
|
"name",
|
||||||
"created_time",
|
"created_time",
|
||||||
"ntables",
|
"ntables",
|
||||||
|
@ -426,7 +434,12 @@ Response body:
|
||||||
"comp",
|
"comp",
|
||||||
"precision",
|
"precision",
|
||||||
"status"
|
"status"
|
||||||
], | "column_meta": [
|
],
|
||||||
|
```
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
```
|
||||||
|
"column_meta": [
|
||||||
[
|
[
|
||||||
"name",
|
"name",
|
||||||
"VARCHAR",
|
"VARCHAR",
|
||||||
|
@ -442,8 +455,17 @@ Response body:
|
||||||
"VARCHAR",
|
"VARCHAR",
|
||||||
10
|
10
|
||||||
]
|
]
|
||||||
], | |
|
],
|
||||||
| Data | "data": [
|
```
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Data
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
```
|
||||||
|
"data": [
|
||||||
[
|
[
|
||||||
"log",
|
"log",
|
||||||
"2020-09-02 17:23:00.039",
|
"2020-09-02 17:23:00.039",
|
||||||
|
@ -463,7 +485,12 @@ Response body:
|
||||||
"us",
|
"us",
|
||||||
"ready"
|
"ready"
|
||||||
]
|
]
|
||||||
], | "data": [
|
],
|
||||||
|
```
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
```
|
||||||
|
"data": [
|
||||||
[
|
[
|
||||||
"information_schema",
|
"information_schema",
|
||||||
16,
|
16,
|
||||||
|
@ -474,7 +501,11 @@ Response body:
|
||||||
9,
|
9,
|
||||||
"ready"
|
"ready"
|
||||||
]
|
]
|
||||||
], | |
|
],
|
||||||
|
```
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
## Reference
|
## Reference
|
||||||
|
|
||||||
|
|
|
@ -408,10 +408,18 @@ curl http://192.168.0.1:6041/rest/login/root/taosdata
|
||||||
|
|
||||||
### 响应代码和消息体
|
### 响应代码和消息体
|
||||||
|
|
||||||
| 响应代码和消息体 | TDengine 2.x | TDengine 3.0 | note |
|
<table>
|
||||||
| :--------------------| :------------------: | :----------: | :-----------------------------------: |
|
<tr>
|
||||||
| Success | "status": "succ", | "code": 0, | |
|
<td> 响应代码和消息体 </td> <td> TDengine 2.x </td> <td> TDengine 3.0 </td>
|
||||||
| Column meta | "head": [
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> Success </td> <td> "status": "succ",</td> <td> "code": 0,</td>
|
||||||
|
/<tr>
|
||||||
|
<tr>
|
||||||
|
<td> Column meta </td>
|
||||||
|
<td>
|
||||||
|
```
|
||||||
|
"head": [
|
||||||
"name",
|
"name",
|
||||||
"created_time",
|
"created_time",
|
||||||
"ntables",
|
"ntables",
|
||||||
|
@ -429,7 +437,12 @@ curl http://192.168.0.1:6041/rest/login/root/taosdata
|
||||||
"comp",
|
"comp",
|
||||||
"precision",
|
"precision",
|
||||||
"status"
|
"status"
|
||||||
], | "column_meta": [
|
],
|
||||||
|
```
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
```
|
||||||
|
"column_meta": [
|
||||||
[
|
[
|
||||||
"name",
|
"name",
|
||||||
"VARCHAR",
|
"VARCHAR",
|
||||||
|
@ -445,8 +458,17 @@ curl http://192.168.0.1:6041/rest/login/root/taosdata
|
||||||
"VARCHAR",
|
"VARCHAR",
|
||||||
10
|
10
|
||||||
]
|
]
|
||||||
], | |
|
],
|
||||||
| Data | "data": [
|
```
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Data
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
```
|
||||||
|
"data": [
|
||||||
[
|
[
|
||||||
"log",
|
"log",
|
||||||
"2020-09-02 17:23:00.039",
|
"2020-09-02 17:23:00.039",
|
||||||
|
@ -466,7 +488,12 @@ curl http://192.168.0.1:6041/rest/login/root/taosdata
|
||||||
"us",
|
"us",
|
||||||
"ready"
|
"ready"
|
||||||
]
|
]
|
||||||
], | "data": [
|
],
|
||||||
|
```
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
```
|
||||||
|
"data": [
|
||||||
[
|
[
|
||||||
"information_schema",
|
"information_schema",
|
||||||
16,
|
16,
|
||||||
|
@ -477,8 +504,11 @@ curl http://192.168.0.1:6041/rest/login/root/taosdata
|
||||||
9,
|
9,
|
||||||
"ready"
|
"ready"
|
||||||
]
|
]
|
||||||
], | |
|
],
|
||||||
|
```
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
## 参考
|
## 参考
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue