Implement get all email addresses admin endpoint

As a part of the custom email sending functionality, we need an endpoint to get all the emails of the mentors and the mentees so the admin can select the required emails.

The API will have the following structure,

GET {baseUrl}/api/admin/programs/${programId}/emails
       Response { emails : String[] }

@Gravewalker Is this enough or do we need some query parameters to filter the results?

Here’s the ticket for this task.

1 Like

This’ll be enough, I think

1 Like

Here’s the draft email:

1 Like