From 44aefa1f6d462989d922eece518fcd8efe173dbf Mon Sep 17 00:00:00 2001 From: zhanghengrui-ifanr Date: Thu, 15 Sep 2022 15:04:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?BAAS-7705=20#time=201h=20=E7=9F=A5=E6=99=93?= =?UTF-8?q?=E4=BA=91=20OpenAPI=20=E6=94=AF=E6=8C=81=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=EF=BC=8C=E6=96=B0=E5=A2=9E=EF=BC=8C=E5=88=A0=E9=99=A4=EF=BC=8C?= =?UTF-8?q?=E5=94=AF=E4=B8=80=E7=B4=A2=E5=BC=95=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- open-api/data/table.md | 241 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 241 insertions(+) diff --git a/open-api/data/table.md b/open-api/data/table.md index dc338659..174faacf 100644 --- a/open-api/data/table.md +++ b/open-api/data/table.md @@ -651,3 +651,244 @@ curl_close($ch); **状态码说明** `204`: 删除成功 + +# 索引 + +## 获取 schema 下所有的唯一索引 + +**接口** + +`GET https://cloud.minapp.com/oserve/v2.6/schema/:schema_id/index/` + +**代码示例** + +{% tabs getIndexCurl="Curl", getIndexNode="Node", getIndexPHP="PHP" %} + +{% content "getIndexCurl" %} + +``` +curl -X GET \ +-H "Authorization: Bearer cfb5912724dd7ff0b0c17683cc3074bb548bc7f4" \ +-H "Content-Type: application/json" \ +https://cloud.minapp.com/oserve/v2.6/schema/20/index/ +``` + +{% content "getIndexNode" %} + +```js +var request = require("request"); + +var options = { method: 'GET', + url: 'https://cloud.minapp.com/oserve/v2.6/schema/20/index/', + headers: + { 'Content-Type': 'application/json', + Authorization: 'Bearer cfb5912724dd7ff0b0c17683cc3074bb548bc7f4' }, + json: true }; + +request(options, function (error, response, body) { + if (error) throw new Error(error); + + console.log(body); +}); +``` + +{% content "getIndexPHP" %} + +```php + Date: Thu, 15 Sep 2022 15:59:47 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=9F=A5=E6=99=93=E4=BA=91=20OpenAPI=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=94=AF=E6=8C=81=E6=9F=A5=E7=9C=8B=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=8C=E5=88=A0=E9=99=A4=EF=BC=8C=E5=94=AF?= =?UTF-8?q?=E4=B8=80=E7=B4=A2=E5=BC=95=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- open-api/data/table.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open-api/data/table.md b/open-api/data/table.md index 174faacf..dc859f90 100644 --- a/open-api/data/table.md +++ b/open-api/data/table.md @@ -654,7 +654,7 @@ curl_close($ch); # 索引 -## 获取 schema 下所有的唯一索引 +## 获取数据表下所有的唯一索引 **接口**