Skip to content

Provide APIs for organizers to monitor ticket sales and attendees#375

Merged
BigBen-7 merged 2 commits into
Lead-Studios:dev-v1from
GideonBature:dashboard-api
Sep 26, 2025
Merged

Provide APIs for organizers to monitor ticket sales and attendees#375
BigBen-7 merged 2 commits into
Lead-Studios:dev-v1from
GideonBature:dashboard-api

Conversation

@GideonBature
Copy link
Copy Markdown
Contributor

Description

Provide APIs for organizers to monitor ticket sales and attendees. This PR introduces new endpoints that allow event organizers to retrieve comprehensive information about their events, including ticket sales statistics, revenue data, and attendee details.

Related Issues

Closes #360

Changes Made

  • Added OrganizerController with endpoint to get organizer's events (GET /organizer/:id/events)
  • Created OrganizerService with business logic for fetching organizer events
  • Implemented comprehensive DTOs for Event, Attendee, EventStats, and OrganizerEventsResponse
  • Added authorization check to ensure organizers can only access their own events
  • Integrated new controller and service into the main AppModule
  • Added mock data structure with sample events, attendees, and sales statistics

How to Test

  1. Start the application using npm run start
  2. Make a GET request to http://localhost:3000/organizer/org1/events
  3. Verify the response includes:
    • Event details (title, description, date, location)
    • Ticket sales statistics (sold, remaining, revenue)
    • Attendee information (name, email, purchase date)
  4. Test authorization by trying to access events with a different organizer ID
  5. Confirm a 403 Forbidden error is returned for unauthorized access attempts

Screenshots (if applicable)

N/A - Backend API changes only

Checklist

  • My code follows the project's coding style.
  • I have tested these changes locally.
  • Documentation has been updated where necessary.

Copy link
Copy Markdown
Collaborator

@BigBen-7 BigBen-7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BigBen-7 BigBen-7 merged commit 9c1c46b into Lead-Studios:dev-v1 Sep 26, 2025
1 check passed
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.

9. Organizer Dashboard API

2 participants