-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generic share and comments API #7315
Comments
CommentsComments have a PHP API within OCP and also via WebDAV. Later is not documented, unfortunately, yet. If it helps a brief intro: The Comments resource has an endpoint: remote.php/comments/$OBJECTTYPE/$OBJECTID [/$COMMENTID] The ObjectID endpoint accepts:
The CommentID endpoint accepts:
For a list of properties, see: Examples of usage can be found in this PR (check the comments): And if you want a usage example of it, the announcement center has comments implemented. See the comments related files in https://github.com/nextcloud/announcementcenter/tree/master/js for frontend matters. Backendwise SharingWhat might help in Sharing is that for 13 we introduced Then we also introduced an AutoCompletion Controller endpoint for frontend matters. It is used by Comments autocomplete, but can be reused for anything related to collaboration, like finding users, groups etc to share with. It makes use of the previously mentioned |
P.S.: to comments: files also have comment related attributes (→webdav), comments-href, comments-count and comments-unread. First points to the related comments resource, the others just say how many comments were left and how many are unread. |
Thanks for the detailed response :) i will have a look at the mentioned apis. |
Should be all good, closing |
@tobiasKaminsky as discussed |
The current share api is pretty much limited to only allow file sharing but there are apps like polls, deck and others that want to share other content. It would be pretty awesome in case of privacy settings and databse design and DRY to have one central share / comments api under the OCP namespace. Also UI / UX changes and things like the circles api need to be adopted in a lot of different apps instead of one central place. Took me some time to go threw all the sharing frontend / backend stuff to get the parts i needed to implement it in my app. Especially with features like activity entries and share notifications it becomes a bunch of code to maintain and update.
The text was updated successfully, but these errors were encountered: