瀏覽代碼

[docs] Document create directory public API (#2803)

Harsh Gupta 3 年之前
父節點
當前提交
64c85429be
共有 1 個文件被更改,包括 12 次插入3 次删除
  1. 12 3
      docs/docs-site/content/developer/api/rest/_index.md

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

@@ -353,7 +353,7 @@ We can choose a dialect for `doc_type` e.g. impala, mysql, hive, phoenix, etc.
 
 ## File Browsing
 
-Hue's [File Browser](https://docs.gethue.com/user/browsing/#data) offer uploads, downloads, operations (create, delete, chmod...) and listing of data in HDFS (hdfs:// or no prefix), S3 (s3a:// prefix), ADLS (adls:// or abfs:// prefixes) storages.
+Hue's [File Browser](https://docs.gethue.com/user/browsing/#data) offer uploads, downloads, operations (create, delete, chmod...) and listing of data in HDFS (`hdfs://` or no prefix), S3 (`s3a://` prefix), ADLS (`adls://` or `abfs://` prefixes) storages.
 
 ### Get Filesystems
 
@@ -478,8 +478,17 @@ Upload a local file to a remote destination folder:
 
     curl -X POST https://demo.gethue.com/api/storage/upload/file?dest=s3a://demo-gethue/web_log_data/ --form hdfs_file=@README.md
 
-- dest: folder path will be created if it does not exist yet
-- hdfs_file: relative or absolute path to a file. It should be read more like `local_file`, it is not related to HDFS
+- **dest:** folder path will be created if it does not exist yet
+- **hdfs_file:** relative or absolute path to a file. It should be read more like `local_file`, it is not related to HDFS
+
+### Create Directory
+
+Create a directory at a specific path:
+
+    curl -X POST https://demo.gethue.com/api/storage/mkdir
+    
+- **name:** name of the directory
+- **path:** specific path where user wants to create the directory
 
 ## Data Importer