I'm integrating Box into an iOS app using the Box v2.0 api.
The first problem I've hit is that the response to API calls for "entries" by the "folders" api request is too limited. What the api currently returns for each folder "entry" is something like:
"entries" :
[
{
"sequence_id": "0",
"type": "file",
"id": "2631999573",
"name":"IMG_1312.JPG"
},
{
"type":"folder",
"id":"2305623799",
"sequence_id":"1",
"name":"a child folder"
}
]
This means that to retrieve basic metadata (size, modification date etc) for a child entry I have to issue a REST request for each item. This is clearly very inefficient.
Is there a way to get richer metadata in the "folders/" response? It could be filtered by providing a suitable query in the request. e.g.
GET /folders/980980989?fields=name,id,type,size,modified_at