Skip to content
New issue

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

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

Already on GitHub? # to your account

Implement Get all mentor emails endpoint (Admin) #43

Closed
janithlahirukariyawasam opened this issue Jul 27, 2023 · 1 comment · Fixed by #71
Closed

Implement Get all mentor emails endpoint (Admin) #43

janithlahirukariyawasam opened this issue Jul 27, 2023 · 1 comment · Fixed by #71
Assignees
Labels
admin Admin related task backend A backend task hacktoberfest

Comments

@janithlahirukariyawasam
Copy link
Member

janithlahirukariyawasam commented Jul 27, 2023

Description:
This issue involves implementing an API to Get all mentor emails. The endpoint should allow Admin to make a GET request to {{baseUrl}}/api/admin/mentor/emails?status=ACCEPTED.

{
    "emails": [
        "mentor@gmail.com",
        "anotherMentor@gmail.com"
    ]
}

Tasks:

  1. Create a controller for the /controllers/profile 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/profile is implemented via a GET 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
@sathudeva7
Copy link
Contributor

@anjula-sack I'd like to work on this issue

sathudeva7 pushed a commit to sathudeva7/scholarx-backend that referenced this issue Oct 9, 2023
@anjula-sack anjula-sack moved this to In progress in ScholarX Oct 10, 2023
anjula-sack pushed a commit that referenced this issue Oct 10, 2023
Co-authored-by: Krishnadeva <krishnadeva@gl.block-stars.com>
@anjula-sack anjula-sack moved this from In progress to Done in ScholarX Oct 14, 2023
anjula-sack pushed a commit to anjula-sack/scholarx-backend that referenced this issue Jul 23, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
admin Admin related task backend A backend task hacktoberfest
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants