User Routes

  • /api/user/apply: Processes application data and stores it in the MongoDB database, if an application for the user does not already exist

  • /api/user/waiver (GET): Redirects an accepted user to a DocuSign waiver for them to sign

  • /api/user/waiver (POST): Processes DocuSign webhook events related to completing the waiver and updates the status of the user who signed the record to WAIVER_SIGNED

  • /api/user/rsvp: Allows a user to RSVP and un-RSVP. When a user RSVPs before the deadline, their status will change from WAIVER_SIGNED to CONFIRMED. Once the deadline passes, users can no longer RSVP, but those who have already RSVP'd can choose to un-RSVP. There are several situations in this case:

    • If the RSVP deadline has not passed yet, then their status will be CONFIRMED, so the new status after un-RSVP will be WAIVER_SIGNED.

    • If the RSVP deadline has already passed, then their status will be ATTENDING, so the new status after un-RSVP will be VOID. Note that since the deadline has already passed, the user will no longer be able to RSVP once they un-RSVP in this scenario.

Last updated