Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
c3abf5ed
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
c3abf5ed
编写于
4月 12, 2023
作者:
sangshuduo
提交者:
GitHub
4月 12, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: use html table in rest api (#20893)
* docs: add rest api diff * docs: use html table
上级
b8ca3695
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
80 addition
and
19 deletion
+80
-19
docs/en/14-reference/02-rest-api/02-rest-api.mdx
docs/en/14-reference/02-rest-api/02-rest-api.mdx
+40
-9
docs/zh/08-connector/02-rest-api.mdx
docs/zh/08-connector/02-rest-api.mdx
+40
-10
未找到文件。
docs/en/14-reference/02-rest-api/02-rest-api.mdx
浏览文件 @
c3abf5ed
...
...
@@ -405,10 +405,18 @@ Response body:
### Response body
| Response body | TDengine 2.x | TDengine 3.0 | note |
| :--------------------| :------------------: | :----------: | :-----------------------------------: |
| Success | "status": "succ", | "code": 0, | |
| Column meta | "head": [
<table>
<tr>
<td> Response body </td> <td> TDengine 2.x </td> <td> TDengine 3.0 </td>
</tr>
<tr>
<td> Success </td> <td> "status": "succ",</td> <td> "code": 0,</td>
/<tr>
<tr>
<td> Column meta </td>
<td>
```
"head": [
"name",
"created_time",
"ntables",
...
...
@@ -426,7 +434,12 @@ Response body:
"comp",
"precision",
"status"
], | "column_meta": [
],
```
</td>
<td>
```
"column_meta": [
[
"name",
"VARCHAR",
...
...
@@ -442,8 +455,17 @@ Response body:
"VARCHAR",
10
]
], | |
| Data | "data": [
],
```
</td>
</tr>
<tr>
<td>
Data
</td>
<td>
```
"data": [
[
"log",
"2020-09-02 17:23:00.039",
...
...
@@ -463,7 +485,12 @@ Response body:
"us",
"ready"
]
], | "data": [
],
```
</td>
<td>
```
"data": [
[
"information_schema",
16,
...
...
@@ -474,7 +501,11 @@ Response body:
9,
"ready"
]
], | |
],
```
</td>
</tr>
</table>
## Reference
...
...
docs/zh/08-connector/02-rest-api.mdx
浏览文件 @
c3abf5ed
...
...
@@ -408,10 +408,18 @@ curl http://192.168.0.1:6041/rest/login/root/taosdata
### 响应代码和消息体
| 响应代码和消息体 | TDengine 2.x | TDengine 3.0 | note |
| :--------------------| :------------------: | :----------: | :-----------------------------------: |
| Success | "status": "succ", | "code": 0, | |
| Column meta | "head": [
<table>
<tr>
<td> 响应代码和消息体 </td> <td> TDengine 2.x </td> <td> TDengine 3.0 </td>
</tr>
<tr>
<td> Success </td> <td> "status": "succ",</td> <td> "code": 0,</td>
/<tr>
<tr>
<td> Column meta </td>
<td>
```
"head": [
"name",
"created_time",
"ntables",
...
...
@@ -429,7 +437,12 @@ curl http://192.168.0.1:6041/rest/login/root/taosdata
"comp",
"precision",
"status"
], | "column_meta": [
],
```
</td>
<td>
```
"column_meta": [
[
"name",
"VARCHAR",
...
...
@@ -445,8 +458,17 @@ curl http://192.168.0.1:6041/rest/login/root/taosdata
"VARCHAR",
10
]
], | |
| Data | "data": [
],
```
</td>
</tr>
<tr>
<td>
Data
</td>
<td>
```
"data": [
[
"log",
"2020-09-02 17:23:00.039",
...
...
@@ -466,7 +488,12 @@ curl http://192.168.0.1:6041/rest/login/root/taosdata
"us",
"ready"
]
], | "data": [
],
```
</td>
<td>
```
"data": [
[
"information_schema",
16,
...
...
@@ -477,8 +504,11 @@ curl http://192.168.0.1:6041/rest/login/root/taosdata
9,
"ready"
]
], | |
],
```
</td>
</tr>
</table>
## 参考
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录