Skip to content

Added Rsvp rest api interestcount feature - #25

Open
huncijr wants to merge 3 commits into
hackclub:mainfrom
huncijr:rsvp-rest-api
Open

Added Rsvp rest api interestcount feature#25
huncijr wants to merge 3 commits into
hackclub:mainfrom
huncijr:rsvp-rest-api

Conversation

@huncijr

@huncijr huncijr commented Jun 20, 2026

Copy link
Copy Markdown

This PR exposes the existing toggle_user_interest() database logic as a public POST /api/rsvp REST endpoint, accepting { event_id, user_id } and returning the updated interest state and count. When a user reacts to an RSVP message in Slack, the InterestedUsers array updates and the InterestCount increments; removing the reaction calls the same toggle logic and decrements the count. The updated count is also visible in the Slack Home tab for admins, and adds an interest badge on the Events website in events#82, where the frontend reads InterestCount from the existing read-only /events/ API and displays it in the UI.

hackclub/events#82
Screenshot From 2026-06-20 12-59-10
Screenshot From 2026-06-20 13-00-04
Screenshot From 2026-06-20 13-00-32

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant