Skip to content

feat(api): describe recommended files as WebDAV does - #1206

Open
skjnldsv wants to merge 1 commit into
masterfrom
feat/api-node-attributes
Open

skjnldsv wants to merge 1 commit into
masterfrom
feat/api-node-attributes

Conversation

@skjnldsv

Copy link
Copy Markdown
Member

The recommendations API only gave a file's id, name, folder and mime. A client that wants to open one in the viewer has to build an @nextcloud/files node from that, and had to guess the permissions and download restrictions. It now also returns the etag, mtime, size, permissions, owner and share attributes, from the same sources as their WebDAV props.

shareAttributes is what tells the viewer that a share forbids downloading. The frontend will use these once #1205 is in.

馃懢 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

Add the etag, mtime, size, permissions, owner and share attributes, so
a client can build the same node as from a PROPFIND.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvo忙 <14975046+skjnldsv@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant