diff --git a/open-api/data/table.md b/open-api/data/table.md index dc338659..dc859f90 100644 --- a/open-api/data/table.md +++ b/open-api/data/table.md @@ -651,3 +651,244 @@ curl_close($ch); **状态码说明** `204`: 删除成功 + +# 索引 + +## 获取数据表下所有的唯一索引 + +**接口** + +`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 +