浏览代码

[docs] List file API

Romain Rigaux 4 年之前
父节点
当前提交
810539e302
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      docs/docs-site/content/developer/api/rest/_index.md

+ 1 - 3
docs/docs-site/content/developer/api/rest/_index.md

@@ -364,9 +364,7 @@ Here is how to list the content of a path, here the S3 bucket `S3A://gethue-demo
 
 How to get the file content and its metadata. Here with the public file of demo.gethue.com [s3a://demo-hue/web_log_data/index_data.csv](https://demo.gethue.com/hue/filebrowser/view=s3a%3A%2F%2Fdemo-hue%2Fweb_log_data%2Findex_data.csv):
 
-**Note** It needs the `XMLHttpRequest` header to return the data in json:
-
-    curl  -X GET "https://demo.gethue.com/filebrowser/view=s3a://demo-hue/web_log_data/index_data.csv?offset=0&length=204800&compression=none&mode=text" -H "X-requested-with: XMLHttpRequest"
+    curl -X GET https://demo.gethue.com/api/storage/view=s3a://demo-hue/web_log_data/index_data.csv?offset=0&length=204800&compression=none&mode=text
 
     {
       "show_download_button": true,