POST
创建一个的文件夹,这个文件夹出现在当前资源库文件夹列表的尾部。
参数:
参数 | 说明 |
---|---|
folderName | 文件夹名 |
范例代码:
var data = {
"folderName": "文件夹名称"
};
var requestOptions = {
method: 'POST',
body: JSON.stringify(data),
redirect: 'follow'
};
fetch("http://localhost:41595/api/folder/create", requestOptions)
.then(response => response.json())
.then(result => console.log(result))
.catch(error => console.log('error', error));
返回结果:
{
"status": "success",
"data": {
"id": "KBJJSMMVF9WYL",
"name": "文件夹名称",
"images": [],
"folders": [],
"modificationTime": 1592409993367,
"imagesMappings": {},
"tags": [],
"children": [],
"isExpand": true
}
}