Skip to content

Include folder name and ID in dataset file lists #34

@max-zilla

Description

@max-zilla

/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"
}
}

Metadata

Metadata

Assignees

Labels

apiJSON RESTful Web APIgood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions