POST 创建一个的文件夹,这个文件夹出现在当前资源库文件夹列表的尾部。

参数:

参数 说明
folderName 文件夹名

**

范例代码:

  1. var data = {
  2. "folderName": "文件夹名称"
  3. };
  4. var requestOptions = {
  5. method: 'POST',
  6. body: JSON.stringify(data),
  7. redirect: 'follow'
  8. };
  9. fetch("http://localhost:41595/api/folder/create", requestOptions)
  10. .then(response => response.json())
  11. .then(result => console.log(result))
  12. .catch(error => console.log('error', error));

返回结果:

  1. {
  2. "status": "success",
  3. "data": {
  4. "id": "KBJJSMMVF9WYL",
  5. "name": "文件夹名称",
  6. "images": [],
  7. "folders": [],
  8. "modificationTime": 1592409993367,
  9. "imagesMappings": {},
  10. "tags": [],
  11. "children": [],
  12. "isExpand": true
  13. }
  14. }