Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Send bulk emails endpoint (Admin) #39

Open
janithlahirukariyawasam opened this issue Jul 27, 2023 · 0 comments
Open

Implement Send bulk emails endpoint (Admin) #39

janithlahirukariyawasam opened this issue Jul 27, 2023 · 0 comments
Assignees
Labels
admin Admin related task backend A backend task

Comments

@janithlahirukariyawasam
Copy link
Member

Description:
This issue involves implementing an API to Send bulk emails. The endpoint should allow Admin to make a POST request to {{baseUrl}}/api/admin/emails.

Tasks:

  1. Create a controller for the /controllers/email endpoint in the backend (create the route email if not created).
  2. Parse and validate the request body to ensure it matches the expected format.
  3. Implement appropriate error handling and response status codes for different scenarios (e.g., validation errors, database errors).
  4. Write unit tests to validate the functionality and correctness of the endpoint.

API documentation: https://documenter.getpostman.com/view/27421496/2s93m1a4ac#8744a3ee-970f-489a-853d-8b23fdee8de3

ER diagram: https://drive.google.com/file/d/11KMgdNu2mSAm0Ner8UsSPQpZJS8QNqYc/view

Acceptance Criteria:

  • The profile API endpoint /controllers/email is implemented via a POST request.
  • The request body is properly parsed and validated for the required format.
  • Appropriate error handling is implemented, providing meaningful error messages and correct response status codes.
  • Unit tests are written to validate the functionality and correctness of the endpoint.

Additional Information:
No

Related Dependencies or References:
No

@janithlahirukariyawasam janithlahirukariyawasam added the backend A backend task label Jul 27, 2023
@anjula-sack anjula-sack added this to the Admin Functionalities milestone Aug 13, 2023
@anjula-sack anjula-sack added the admin Admin related task label Aug 13, 2023
@mayura-andrew mayura-andrew self-assigned this Apr 28, 2024
@mayura-andrew mayura-andrew moved this to In progress in ScholarX Apr 28, 2024
@anjula-sack anjula-sack moved this from In progress to In review in ScholarX May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin Admin related task backend A backend task
Projects
Status: In review
Development

No branches or pull requests

3 participants