I'm using v2 of the HTTP API and wanted to pass along some feedback.
When I hit a files list from an endpoint like files/list_folder, I get a JSON response like this:
{ entries:
[
{ '.tag': 'file',
name: 'foo.pdf',
path_lower: '/foo.pdf',
id: 'id:abcdefg',
client_modified: '2015-11-16T00:50:26Z',
server_modified: '2015-11-16T00:50:26Z',
rev: 'd3adb33f',
size: 8675309 },
...
],
cusor: ...
}
Passing back attributes like ".tag" makes it extremely difficult to work with in JSON. eg the only way to access it is with the string accessor: result['.tag']. Many popular data manipulation libraries like lodash break when trying to define simple filters or accessors for this property.
Since the HTTP API speaks JSON, it would be far more developer-friendly to use proper json attribute names. If the attribute is meant to "private", the underscore convention would be more appropriate, eg 'result._tag'