Skip to content

Fix: Add API to register for events#2152

Open
ChiragBellara wants to merge 2 commits intodevelopmentfrom
chirag-register-users-for-events
Open

Fix: Add API to register for events#2152
ChiragBellara wants to merge 2 commits intodevelopmentfrom
chirag-register-users-for-events

Conversation

@ChiragBellara
Copy link
Copy Markdown

@ChiragBellara ChiragBellara commented Apr 5, 2026

Description

Screenshot 2026-04-04 at 9 51 12 PM

Related PRS (if any):

This backend PR is related to the OneCommunityGlobal/HighestGoodNetworkApp#5138 frontend PR.

Main changes explained:

  • Added an API end point to register users for Events based on event Id

How to test:

  1. check into current branch
  2. do npm install and npm run start to run this PR locally
  3. Using Postman, test for the following configuration.
  • Request Type: POST
  • URL: http://localhost:4500/api/events/{EventID}/register
  • Body (Raw JSON):
    {
    "name": "User Name",
    "userID": "User ID (can be found in the local/session variables in the browser)",
    "profilePic": null,
    "location": {Virtual or In Person}
    }
  • Authorization: No Auth
  • Headers: Authorization: {Bearer Token} ; Content-Type: application/json

For Example: You can use the following URL:
http://localhost:4500/api/events/67ae203b55b63b4c0a84130f/register

Screenshots or videos of changes:

Event Registration API

Notes

For now, please keep the profile pic value as Null.

@ChiragBellara ChiragBellara marked this pull request as ready for review April 12, 2026 07:14
@sonarqubecloud
Copy link
Copy Markdown

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