Welcome to Event Management API Portal.
Use the following endpoints to interact with the API:
- POST /api/auth/register - Register a new user. Body: {email, password}
- POST /api/auth/login - Log in a user. Body: {email, password}
- POST /api/event - Create a new event. Body: {title, description, date, category, capacity}
- GET /api/event - Get all events.
- GET /api/event/:id - Get event details by ID.
- POST /api/registration - Register for an event. Body: {eventId}
- DELETE /api/registration/:eventId - Cancel registration for an event.
All endpoints (except /api/auth) require an Authorization header with a valid JWT token.
Example: Authorization: Bearer <token>
For more details, refer to the API documentation.
Note: Make sure to replace <token> with your actual JWT token.