/api/datasets/:id/files will list all files in the dataset as JSON objects, but files within folders have no indication they are not at the root level, making certain operations difficult.
for each file:
{
size: "657",
date-created: "Wed Jul 08 10:25:09 CDT 2020",
id: "5f05e555066c371087387c78",
contentType: "text/plain",
filename: "tempnotes.txt"
}
I would propose:
{
size: "657",
date-created: "Wed Jul 08 10:25:09 CDT 2020",
id: "5f05e555066c371087387c78",
contentType: "text/plain",
filename: "tempnotes.txt",
folder: {
name: "MyFolder",
id: "438904901412412412"
}
}
/api/datasets/:id/files will list all files in the dataset as JSON objects, but files within folders have no indication they are not at the root level, making certain operations difficult.
for each file:
I would propose: