Skip to content
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

API does not expose user's announcements #690

Open
spaceninja opened this issue Apr 16, 2023 · 1 comment
Open

API does not expose user's announcements #690

spaceninja opened this issue Apr 16, 2023 · 1 comment

Comments

@spaceninja
Copy link
Member

On MLTSHP.com in the sidebar you'll get notifications for site announcements, mentions, etc. These are not exposed in the API.

@spaceninja
Copy link
Member Author

Suggestion: Add the following endpoint:

GET /api/user/notifications

Returns notification summary information for the authorized user.

Status Codes

  • 200 OK – an object containing:
    • mentions - the number of notifications of this type
    • followers - the number of notifications of this type
    • saves - the number of notifications of this type
    • likes - the number of notifications of this type
    • comments - the number of notifications of this type
    • invitations - the number of notifications of this type
    • invitation_requests - the number of notifications of this type
    • invitations_approved - the number of notifications of this type

Then for each of the previous types of notifications, add an API endpoint to request the notification details. Here's an example:

GET /api/user/notifications/likes

Status Codes

  • 200 OK – an object containing:
    • likes - a list of abbreviated sharefiles, containing only sharekey, name, and thumbnail, as well as users, a list of abbreviated users who liked the post, containing only name and thumbnail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant